mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CMS: Create local implementation of cloud migration for dev use (#86637)
* add developer mode property to config * create cms stub * cleanup * implement and wire up gcom stub * fix errors * don't document the flag
This commit is contained in:
@@ -13,6 +13,8 @@ type CloudMigrationSettings struct {
|
||||
DeleteAccessPolicyTimeout time.Duration
|
||||
CreateTokenTimeout time.Duration
|
||||
TokenExpiresAfter time.Duration
|
||||
|
||||
IsDeveloperMode bool
|
||||
}
|
||||
|
||||
func (cfg *Cfg) readCloudMigrationSettings() {
|
||||
@@ -25,4 +27,5 @@ func (cfg *Cfg) readCloudMigrationSettings() {
|
||||
cfg.CloudMigration.DeleteAccessPolicyTimeout = cloudMigration.Key("delete_access_policy_timeout").MustDuration(5 * time.Second)
|
||||
cfg.CloudMigration.CreateTokenTimeout = cloudMigration.Key("create_token_timeout").MustDuration(5 * time.Second)
|
||||
cfg.CloudMigration.TokenExpiresAfter = cloudMigration.Key("token_expires_after").MustDuration(7 * 24 * time.Hour)
|
||||
cfg.CloudMigration.IsDeveloperMode = cloudMigration.Key("developer_mode").MustBool(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user