소스 검색

do not pass in a 'cost' value for aws spot nodes

Ajay Tripathy 5 년 전
부모
커밋
086f7cbda1
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      pkg/cloud/awsprovider.go

+ 1 - 2
pkg/cloud/awsprovider.go

@@ -1006,10 +1006,9 @@ func (aws *AWS) createNode(terms *AWSProductTerms, usageType string, k Key) (*No
 			VCPUCost:     aws.BaseSpotCPUPrice,
 			RAM:          terms.Memory,
 			GPU:          terms.GPU,
-			GPUCost:      aws.BaseSpotGPUPrice,
 			RAMCost:      aws.BaseSpotRAMPrice,
 			Storage:      terms.Storage,
-			BaseCPUPrice: aws.BaseCPUPrice,
+			BaseCPUPrice: aws.BaseSpotCPUPrice,
 			BaseRAMPrice: aws.BaseRAMPrice,
 			BaseGPUPrice: aws.BaseGPUPrice,
 			UsageType:    PreemptibleType,