From d824d1eab63341732bda7f772c550058a2864a15 Mon Sep 17 00:00:00 2001 From: masahiro Date: Thu, 25 Oct 2018 22:11:23 +0900 Subject: [PATCH] Fix cmd/helm use tillerTunnel values (#4777) 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 ffc2c1ba2..f7628e44c 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -189,13 +189,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.