mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
E2C: Add cloud migration is_target server config option (#83419)
This commit is contained in:
@@ -495,6 +495,9 @@ type Cfg struct {
|
||||
// Public dashboards
|
||||
PublicDashboardsEnabled bool
|
||||
|
||||
// Cloud Migration
|
||||
CloudMigrationIsTarget bool
|
||||
|
||||
// Feature Management Settings
|
||||
FeatureManagement FeatureMgmtSettings
|
||||
|
||||
@@ -1286,6 +1289,7 @@ func (cfg *Cfg) parseINIFile(iniFile *ini.File) error {
|
||||
|
||||
cfg.readFeatureManagementConfig()
|
||||
cfg.readPublicDashboardsSettings()
|
||||
cfg.readCloudMigrationSettings()
|
||||
|
||||
// read experimental scopes settings.
|
||||
scopesSection := iniFile.Section("scopes")
|
||||
@@ -2005,3 +2009,8 @@ func (cfg *Cfg) readPublicDashboardsSettings() {
|
||||
publicDashboards := cfg.Raw.Section("public_dashboards")
|
||||
cfg.PublicDashboardsEnabled = publicDashboards.Key("enabled").MustBool(true)
|
||||
}
|
||||
|
||||
func (cfg *Cfg) readCloudMigrationSettings() {
|
||||
cloudMigration := cfg.Raw.Section("cloud_migration")
|
||||
cfg.CloudMigrationIsTarget = cloudMigration.Key("is_target").MustBool(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user