Przeglądaj źródła

Add bucket config file for exports

Matt Bolt 1 rok temu
rodzic
commit
c651e2678d
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      pkg/env/costmodelenv.go

+ 6 - 0
pkg/env/costmodelenv.go

@@ -87,6 +87,8 @@ const (
 	ExportCSVLabelsAll  = "EXPORT_CSV_LABELS_ALL"
 	ExportCSVMaxDays    = "EXPORT_CSV_MAX_DAYS"
 
+	ExportBucketConfigFileEnvVar = "EXPORT_BUCKET_CONFIG_FILE"
+
 	DataRetentionDailyResolutionDaysEnvVar   = "DATA_RETENTION_DAILY_RESOLUTION_DAYS"
 	DataRetentionHourlyResolutionHoursEnvVar = "DATA_RETENTION_HOURLY_RESOLUTION_HOURS"
 
@@ -520,6 +522,10 @@ func IsCarbonEstimatesEnabled() bool {
 	return env.GetBool(CarbonEstimatesEnabledEnvVar, false)
 }
 
+func GetExportBucketConfigFile() string {
+	return env.Get(ExportBucketConfigFileEnvVar, "")
+}
+
 // GetUseCacheV1 is a temporary flag to allow users to opt-in to using the old cache
 // Mainly for comparison purposes
 func GetUseCacheV1() bool {