Переглянути джерело

Merge pull request #1090 from kubecost/sean/bug-fix/replace-missing-method

replace method that was erroneously removed
Sean Holcomb 4 роки тому
батько
коміт
cb99ad914f
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      pkg/cloud/awsprovider.go

+ 5 - 0
pkg/cloud/awsprovider.go

@@ -2056,3 +2056,8 @@ func (aws *AWS) ServiceAccountStatus() *ServiceAccountStatus {
 func (aws *AWS) CombinedDiscountForNode(instanceType string, isPreemptible bool, defaultDiscount, negotiatedDiscount float64) float64 {
 	return 1.0 - ((1.0 - defaultDiscount) * (1.0 - negotiatedDiscount))
 }
+
+// Regions returns a predefined list of AWS regions
+func (aws *AWS) Regions() []string {
+	return awsRegions
+}