1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(helm): make the atomic flag optional [r8s-314] (#733)

This commit is contained in:
Ali 2025-05-14 16:31:42 +12:00 committed by GitHub
parent 4ee349bd6b
commit d49fcd8f3e
11 changed files with 71 additions and 10 deletions

View file

@ -11,6 +11,7 @@ type InstallOptions struct {
Wait bool
ValuesFile string
PostRenderer string
Atomic bool
Timeout time.Duration
KubernetesClusterAccess *KubernetesClusterAccess

View file

@ -133,7 +133,7 @@ func (hspm *HelmSDKPackageManager) Upgrade(upgradeOpts options.InstallOptions) (
func initUpgradeClient(actionConfig *action.Configuration, upgradeOpts options.InstallOptions) (*action.Upgrade, error) {
upgradeClient := action.NewUpgrade(actionConfig)
upgradeClient.DependencyUpdate = true
upgradeClient.Atomic = true
upgradeClient.Atomic = upgradeOpts.Atomic
upgradeClient.ChartPathOptions.RepoURL = upgradeOpts.Repo
upgradeClient.Wait = upgradeOpts.Wait