Revert: chore: a drop-in replacement for FeatureToggles.IsEnabledGlobally in app settings (#115593)
* Revert "chore: a drop-in replacement for FeatureToggles.IsEnabledGlobally in app settings (#113449)"
This reverts commit 26ce2c09d7.
* Change FeatureToggles.IsEnabledGlobally deprecation message
This commit is contained in:
@@ -511,9 +511,6 @@ type Cfg struct {
|
||||
// Query history
|
||||
QueryHistoryEnabled bool
|
||||
|
||||
// StartupSettings settings
|
||||
StartupSettings StartupSettings
|
||||
|
||||
// Open feature settings
|
||||
OpenFeature OpenFeatureSettings
|
||||
|
||||
@@ -1476,8 +1473,6 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
// unified storage config
|
||||
cfg.setUnifiedStorageConfig()
|
||||
|
||||
// app platform config
|
||||
cfg.readStartupSettingsSection()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user