Commit 942519de authored by Adam Reese's avatar Adam Reese Committed by GitHub

Merge pull request #1470 from adamreese/fix/1467-default-host

fix(helm): add kubernetes defaults to context
parents 3ba24272 d2648ec4
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
// GetConfig returns a kubernetes client config for a given context. // GetConfig returns a kubernetes client config for a given context.
func GetConfig(context string) clientcmd.ClientConfig { func GetConfig(context string) clientcmd.ClientConfig {
rules := clientcmd.NewDefaultClientConfigLoadingRules() rules := clientcmd.NewDefaultClientConfigLoadingRules()
overrides := &clientcmd.ConfigOverrides{} overrides := &clientcmd.ConfigOverrides{ClusterDefaults: clientcmd.ClusterDefaults}
if context != "" { if context != "" {
overrides.CurrentContext = context overrides.CurrentContext = context
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment