From a01f394b2bc058290ee6016d7821e9fabf2205d1 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Sun, 3 Nov 2019 18:40:49 +0000 Subject: [PATCH] Use the version of helm downloaded This fixes an issue where the user-copy of helm was used instead of the downloaded version to install tiller and failed on K8s 1.16. Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- pkg/cmd/tiller_app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/tiller_app.go b/pkg/cmd/tiller_app.go index f4cfa0f0..bb417fd0 100644 --- a/pkg/cmd/tiller_app.go +++ b/pkg/cmd/tiller_app.go @@ -55,6 +55,7 @@ func makeInstallTiller() *cobra.Command { if err != nil { return err } + fmt.Println(task.Stdout, task.Stderr) task, err = kubectlTask("create", "clusterrolebinding", "tiller", "--clusterrole", "cluster-admin", "--serviceaccount=kube-system:tiller") @@ -63,8 +64,9 @@ func makeInstallTiller() *cobra.Command { } fmt.Println(task.Stdout, task.Stderr) + k3supBin := path.Join(userPath, ".bin") helmInit := execute.ExecTask{ - Command: "helm", + Command: path.Join(k3supBin, "helm"), Args: []string{ "init", "--skip-refresh", "--upgrade", "--service-account", "tiller",