Skip to content

Commit

Permalink
improve 330 ua
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zhao <[email protected]>
  • Loading branch information
PetrusZ committed Jan 23, 2025
1 parent 2835a0e commit 1927202
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pkg/cli/upgradeassistant/cmd/migrate/330.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,29 @@ import (
)

func init() {
upgradepath.RegisterHandler("3.2.0", "3.3.0", V321ToV330)
upgradepath.RegisterHandler("3.2.0", "3.3.0", V320ToV330)
upgradepath.RegisterHandler("3.2.1", "3.3.0", V321ToV330)
upgradepath.RegisterHandler("3.3.0", "3.2.1", V321ToV320)
upgradepath.RegisterHandler("3.3.0", "3.2.0", V321ToV320)
}

func V321ToV330() error {
ctx := handler.NewBackgroupContext()

ctx.Logger.Infof("-------- start migrate helm projects environment values auto sync --------")
err := migrateHelmEnvValuesAutoSync(ctx)
if err != nil {
err = fmt.Errorf("failed to migrate helm projects environment values auto sync, error: %w", err)
ctx.Logger.Error(err)
return err
}

return nil
}

func V320ToV330() error {
ctx := handler.NewBackgroupContext()

ctx.Logger.Infof("-------- start migrate release plan cronjob --------")
err := migrateReleasePlanCron(ctx)
if err != nil {
Expand Down

0 comments on commit 1927202

Please sign in to comment.