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:
parent
4ee349bd6b
commit
d49fcd8f3e
11 changed files with 71 additions and 10 deletions
|
@ -11,6 +11,7 @@ type InstallOptions struct {
|
|||
Wait bool
|
||||
ValuesFile string
|
||||
PostRenderer string
|
||||
Atomic bool
|
||||
Timeout time.Duration
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue