From 353510e01d040d2e7db7ff02c53ed2746e998268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Michna?= Date: Fri, 3 Apr 2020 15:33:53 +0200 Subject: [PATCH] Add '--upgrade' and '--wait' options to 'helm init' '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. --- helm_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm_helpers.go b/helm_helpers.go index cacd851e..873add16 100644 --- a/helm_helpers.go +++ b/helm_helpers.go @@ -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 + " ].", }