Просмотр исходного кода

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

replace method that was erroneously removed
Sean Holcomb 4 лет назад
Родитель
Сommit
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
+}