Merge pull request #616 from dlorenc/context
Always use the minikube context when creating a client.pull/625/head
commit
84416b116a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue