Преглед изворни кода

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,