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

Merge pull request #606 from kubecost/AjayTripathy-fix-ri-requirement

AjayTripathy-fix-ri-requirement
Ajay Tripathy пре 5 година
родитељ
комит
b48ee76563
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      pkg/cloud/awsprovider.go

+ 1 - 4
pkg/cloud/awsprovider.go

@@ -38,7 +38,6 @@ import (
 	v1 "k8s.io/api/core/v1"
 )
 
-const awsReservedInstancePricePerHour = 0.0287
 const supportedSpotFeedVersion = "1"
 const SpotInfoUpdateType = "spotinfo"
 const AthenaInfoUpdateType = "athenainfo"
@@ -71,10 +70,8 @@ func (aws *AWS) PricingSourceStatus() map[string]*PricingSource {
 	rps.Error = aws.RIPricingStatus
 	if rps.Error != "" {
 		rps.Available = false
-	} else if len(aws.RIPricingByInstanceID) > 0 {
-		rps.Available = true
 	} else {
-		rps.Error = "No reserved instances detected"
+		rps.Available = true
 	}
 	sources[ReservedInstancePricingSource] = rps
 	return sources