MM-63577 Enable EnableLocalMode automatically during development (#30583)

Этот коммит содержится в:
Harrison Healey
2025-03-28 12:59:43 -04:00
коммит произвёл GitHub
родитель 59cd90a36f
Коммит 0079289224

Просмотреть файл

@@ -361,9 +361,12 @@ func New(sc ServiceConfig, options ...Option) (*PlatformService, error) {
ps.Busy = NewBusy(ps.clusterIFace)
// Enable developer settings if this is a "dev" build
// Enable developer settings and mmctl local mode if this is a "dev" build
if model.BuildNumber == "dev" {
ps.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableDeveloper = true })
ps.UpdateConfig(func(cfg *model.Config) {
*cfg.ServiceSettings.EnableDeveloper = true
*cfg.ServiceSettings.EnableLocalMode = true
})
}
ps.AddLicenseListener(func(oldLicense, newLicense *model.License) {