Merge pull request #616 from dlorenc/context

Always use the minikube context when creating a client.
pull/625/head
dlorenc 2016-09-23 10:55:30 -07:00 committed by GitHub
commit 84416b116a
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ func getServicePortFromServiceGetter(services serviceGetter, service string) (in
func GetKubernetesClient() (*unversioned.Client, error) {
loadingRules := clientcmd.NewDefaultClientConfigLoadingRules()
configOverrides := &clientcmd.ConfigOverrides{}
configOverrides := &clientcmd.ConfigOverrides{CurrentContext: constants.MinikubeContext}
kubeConfig := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(loadingRules, configOverrides)
config, err := kubeConfig.ClientConfig()
if err != nil {