Skip to content

Commit

Permalink
Add '--upgrade' and '--wait' options to 'helm init'
Browse files Browse the repository at this point in the history
'helm init --force-upgrade' does not work without the '--upgrade' option.
Without '--wait' option immediate 'helm list' after 'helm init --upgrade'
leads to errors with port forwarding.
  • Loading branch information
pmichna authored and Pawel Michna committed Apr 3, 2020
1 parent 969a7f5 commit 353510e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func deployTiller(namespace string, serviceAccount string, defaultServiceAccount
}
cmd := command{
Cmd: "helm",
Args: concat([]string{"init", "--force-upgrade"}, maxHistory, sa, tillerNameSpace, tls, storageBackend),
Args: concat([]string{"init", "--upgrade", "--force-upgrade", "--wait"}, maxHistory, sa, tillerNameSpace, tls, storageBackend),
Description: "initializing helm on the current context and upgrading Tiller on namespace [ " + namespace + " ].",
}

Expand Down

0 comments on commit 353510e

Please sign in to comment.