소스 검색

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 {
 func (aws *AWS) CombinedDiscountForNode(instanceType string, isPreemptible bool, defaultDiscount, negotiatedDiscount float64) float64 {
 	return 1.0 - ((1.0 - defaultDiscount) * (1.0 - negotiatedDiscount))
 	return 1.0 - ((1.0 - defaultDiscount) * (1.0 - negotiatedDiscount))
 }
 }
+
+// Regions returns a predefined list of AWS regions
+func (aws *AWS) Regions() []string {
+	return awsRegions
+}