mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
feat(init): allow to customize kubectl-shell image by cli flag [BE-11419] (#162)
This commit is contained in:
parent
4265ae4dae
commit
ee0dbf2d22
12 changed files with 24 additions and 11 deletions
|
@ -32,7 +32,7 @@ func (store *Store) MigrateData() error {
|
|||
return errors.Wrap(err, "while migrating legacy version")
|
||||
}
|
||||
|
||||
migratorParams := store.newMigratorParameters(version)
|
||||
migratorParams := store.newMigratorParameters(version, store.flags)
|
||||
migrator := migrator.NewMigrator(migratorParams)
|
||||
|
||||
if !migrator.NeedsMigration() {
|
||||
|
@ -62,8 +62,9 @@ func (store *Store) MigrateData() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (store *Store) newMigratorParameters(version *models.Version) *migrator.MigratorParameters {
|
||||
func (store *Store) newMigratorParameters(version *models.Version, flags *portainer.CLIFlags) *migrator.MigratorParameters {
|
||||
return &migrator.MigratorParameters{
|
||||
Flags: flags,
|
||||
CurrentDBVersion: version,
|
||||
EndpointGroupService: store.EndpointGroupService,
|
||||
EndpointService: store.EndpointService,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue