Skip to content

Commit

Permalink
Fix minikube kubectl context switching
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Feb 20, 2021
1 parent 6e53584 commit 4ba4ef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/minikube/cmd/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ minikube kubectl -- get pods --namespace kube-system`,
co := mustload.Healthy(ClusterFlagValue())

version := co.Config.KubernetesConfig.KubernetesVersion

c, err := KubectlCommand(version, args...)
if err != nil {
out.ErrLn("Error caching kubectl: %v", err)
}

klog.Infof("Running %s %v", c.Path, args)

c.Stdin = os.Stdin
c.Stdout = os.Stdout
c.Stderr = os.Stderr
Expand Down

0 comments on commit 4ba4ef4

Please sign in to comment.