Skip to content

Commit

Permalink
Merge branch 'main' into EVEREST-1717-rbac-ui-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-silva authored Dec 31, 2024
2 parents b15c13e + 46a370a commit 9b50758
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/cli/helm/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ type UpgradeOptions struct {
ReuseValues bool
ResetValues bool
ResetThenReuseValues bool
Force bool
}

// Upgrade the Helm chart.
Expand All @@ -239,6 +240,7 @@ func (i *Installer) Upgrade(ctx context.Context, opts UpgradeOptions) error {
upgrade.ResetValues = opts.ResetValues
upgrade.ResetThenReuseValues = opts.ResetThenReuseValues
upgrade.DisableHooks = opts.DisableHooks
upgrade.Force = opts.Force

rel, err := upgrade.RunWithContext(ctx, i.ReleaseName, i.chart, i.Values)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/cli/upgrade/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func (u *Upgrade) helmAdoptDBNamespaces(ctx context.Context, namespace, version
return installer.Upgrade(ctx, helm.UpgradeOptions{
DisableHooks: true,
ReuseValues: true,
Force: true, // since the version is not changing, we want to ensure that new manifests are still applied.
})
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (u *Upgrade) printPostUpgradeMessage(ctx context.Context, out io.Writer) er
if isSecure, err := u.kubeClient.Accounts().IsSecure(ctx, common.EverestAdminUser); err != nil {
return errors.Join(err, errors.New("could not check if the admin password is secure"))
} else if !isSecure {
fmt.Fprint(os.Stdout, "\n", common.InitialPasswordWarningMessage)
fmt.Fprint(os.Stdout, "\n", common.InitialPasswordWarningMessage, "\n")
}
return nil
}
Expand Down

0 comments on commit 9b50758

Please sign in to comment.