fix(helm): fix windows support with port forward connection in setupConnection

This fixes the port forward connection using helm on windows by assigning explicitely 'localhost' to 'TillerHost' in 'setupConnection'. Otherwise, the connection between the helm client with the Tiller server deployed on Kubernetes will not work.
release-2.0
Serge Catudal 9 years ago committed by Matt Butcher
parent a29b225085
commit 7853f52bc6
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -141,7 +141,7 @@ func setupConnection(c *cobra.Command, args []string) error {
return err return err
} }
tillerHost = fmt.Sprintf(":%d", tunnel.Local) tillerHost = fmt.Sprintf("localhost:%d", tunnel.Local)
if flagDebug { if flagDebug {
fmt.Printf("Created tunnel using local port: '%d'\n", tunnel.Local) fmt.Printf("Created tunnel using local port: '%d'\n", tunnel.Local)
} }

Loading…
Cancel
Save