From 94996e949611a23841fb89794608ee9a3083f05b Mon Sep 17 00:00:00 2001 From: masahiro331 Date: Mon, 15 Oct 2018 11:45:15 +0900 Subject: [PATCH] Fix cmd/helm use tillerTunnel values Signed-off-by: masahiro331 --- cmd/helm/helm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 02a1e6edb..622549338 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -186,13 +186,13 @@ func setupConnection() error { return err } - tunnel, err := portforwarder.New(settings.TillerNamespace, client, config) + tillerTunnel, err = portforwarder.New(settings.TillerNamespace, client, config) if err != nil { return err } - settings.TillerHost = fmt.Sprintf("127.0.0.1:%d", tunnel.Local) - debug("Created tunnel using local port: '%d'\n", tunnel.Local) + settings.TillerHost = fmt.Sprintf("127.0.0.1:%d", tillerTunnel.Local) + debug("Created tunnel using local port: '%d'\n", tillerTunnel.Local) } // Set up the gRPC config.