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

cleanup

cleanup

Signed-off-by: Jason Charcalla <jason@kubecost.com>
Jason Charcalla 3 лет назад
Родитель
Сommit
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
 	mins := time.Duration(GetInt64(ETLMaxPrometheusQueryDurationMinutes, int64(dayMins)))
 	return mins * time.Minute
-}
- 
-func LegacyExternalCostsAPIDisabled() bool {
-	return GetBool(LegacyExternalAPIDisabledVar, false)
-}
 
 // GetETLResolution determines the resolution of ETL queries. The smaller the
 // duration, the higher the resolution; the higher the resolution, the more
@@ -493,6 +488,12 @@ func GetETLResolution() time.Duration {
 	return secs * time.Second
 }
 
+}
+ 
+func LegacyExternalCostsAPIDisabled() bool {
+	return GetBool(LegacyExternalAPIDisabledVar, false)
+}
+
 // GetPromClusterLabel returns the environemnt variable value for PromClusterIDLabel
 func GetPromClusterLabel() string {
 	return Get(PromClusterIDLabelEnvVar, "cluster_id")