1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00

feat(init): allow to customize kubectl-shell image by cli flag [BE-11419] (#162)

This commit is contained in:
Oscar Zhou 2024-11-26 10:17:46 +13:00 committed by GitHub
parent 4265ae4dae
commit ee0dbf2d22
12 changed files with 24 additions and 11 deletions

View file

@ -1,8 +1,6 @@
package migrator
import (
portainer "github.com/portainer/portainer/api"
"github.com/rs/zerolog/log"
)
@ -20,7 +18,7 @@ func (m *Migrator) migrateSettingsToDB33() error {
}
log.Info().Msg("setting default kubectl shell image")
settings.KubectlShellImage = portainer.DefaultKubectlShellImage
settings.KubectlShellImage = *m.flags.KubectlShellImage
return m.settingsService.UpdateSettings(settings)
}