2
0
Ajay Tripathy 5 жил өмнө
parent
commit
f356249309

+ 1 - 2
pkg/cloud/awsprovider.go

@@ -38,6 +38,7 @@ import (
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"
 )
 )
 
 
+const awsReservedInstancePricePerHour = 0.0287
 const supportedSpotFeedVersion = "1"
 const supportedSpotFeedVersion = "1"
 const SpotInfoUpdateType = "spotinfo"
 const SpotInfoUpdateType = "spotinfo"
 const AthenaInfoUpdateType = "athenainfo"
 const AthenaInfoUpdateType = "athenainfo"
@@ -133,7 +134,6 @@ type AWS struct {
 	BaseGPUPrice                string
 	BaseGPUPrice                string
 	BaseSpotCPUPrice            string
 	BaseSpotCPUPrice            string
 	BaseSpotRAMPrice            string
 	BaseSpotRAMPrice            string
-	BaseSpotGPUPrice            string
 	SpotLabelName               string
 	SpotLabelName               string
 	SpotLabelValue              string
 	SpotLabelValue              string
 	SpotDataRegion              string
 	SpotDataRegion              string
@@ -616,7 +616,6 @@ func (aws *AWS) DownloadPricingData() error {
 	aws.BaseGPUPrice = c.GPU
 	aws.BaseGPUPrice = c.GPU
 	aws.BaseSpotCPUPrice = c.SpotCPU
 	aws.BaseSpotCPUPrice = c.SpotCPU
 	aws.BaseSpotRAMPrice = c.SpotRAM
 	aws.BaseSpotRAMPrice = c.SpotRAM
-	aws.BaseSpotGPUPrice = c.SpotGPU
 	aws.SpotLabelName = c.SpotLabel
 	aws.SpotLabelName = c.SpotLabel
 	aws.SpotLabelValue = c.SpotLabelValue
 	aws.SpotLabelValue = c.SpotLabelValue
 	aws.SpotDataBucket = c.SpotDataBucket
 	aws.SpotDataBucket = c.SpotDataBucket