瀏覽代碼

cleanup

cleanup

Signed-off-by: Jason Charcalla <jason@kubecost.com>
Jason Charcalla 3 年之前
父節點
當前提交
73811f405e
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      pkg/env/costmodelenv.go

+ 6 - 5
pkg/env/costmodelenv.go

@@ -477,11 +477,6 @@ func GetETLMaxPrometheusQueryDuration() time.Duration {
 	dayMins := 60 * 24
 	dayMins := 60 * 24
 	mins := time.Duration(GetInt64(ETLMaxPrometheusQueryDurationMinutes, int64(dayMins)))
 	mins := time.Duration(GetInt64(ETLMaxPrometheusQueryDurationMinutes, int64(dayMins)))
 	return mins * time.Minute
 	return mins * time.Minute
-}
- 
-func LegacyExternalCostsAPIDisabled() bool {
-	return GetBool(LegacyExternalAPIDisabledVar, false)
-}
 
 
 // GetETLResolution determines the resolution of ETL queries. The smaller the
 // GetETLResolution determines the resolution of ETL queries. The smaller the
 // duration, the higher the resolution; the higher the resolution, the more
 // duration, the higher the resolution; the higher the resolution, the more
@@ -493,6 +488,12 @@ func GetETLResolution() time.Duration {
 	return secs * time.Second
 	return secs * time.Second
 }
 }
 
 
+}
+ 
+func LegacyExternalCostsAPIDisabled() bool {
+	return GetBool(LegacyExternalAPIDisabledVar, false)
+}
+
 // GetPromClusterLabel returns the environemnt variable value for PromClusterIDLabel
 // GetPromClusterLabel returns the environemnt variable value for PromClusterIDLabel
 func GetPromClusterLabel() string {
 func GetPromClusterLabel() string {
 	return Get(PromClusterIDLabelEnvVar, "cluster_id")
 	return Get(PromClusterIDLabelEnvVar, "cluster_id")