ソースを参照

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
+}