chore: a drop-in replacement for FeatureToggles.IsEnabledGlobally in app settings (#113449)

This commit is contained in:
Denis Vodopianov
2025-12-18 13:10:30 -05:00
committed by GitHub
parent 051cdaad0d
commit 26ce2c09d7
3 changed files with 20 additions and 1 deletions
+5
View File
@@ -510,6 +510,9 @@ type Cfg struct {
// Query history
QueryHistoryEnabled bool
// StartupSettings settings
StartupSettings StartupSettings
// Open feature settings
OpenFeature OpenFeatureSettings
@@ -1471,6 +1474,8 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
// unified storage config
cfg.setUnifiedStorageConfig()
// app platform config
cfg.readStartupSettingsSection()
return nil
}
+14
View File
@@ -0,0 +1,14 @@
package setting
type StartupSettings struct {
KubernetesAnnotationsAppEnabled bool
}
func (cfg *Cfg) readStartupSettingsSection() {
settings := StartupSettings{}
startupSettingsSection := cfg.Raw.Section("startup_settings")
settings.KubernetesAnnotationsAppEnabled = startupSettingsSection.Key("annotations_app_enabled").MustBool(false)
cfg.StartupSettings = settings
}