Fix minikube kubectl context switching

pull/10535/head
BLasan 2021-02-20 16:37:15 +05:30
parent 3512e88020
commit 01d47d6141
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ minikube kubectl -- get pods --namespace kube-system`,
co := mustload.Healthy(ClusterFlagValue())
version := co.Config.KubernetesConfig.KubernetesVersion
cluster := []string{"--cluster", ClusterFlagValue()}
args = append(args, cluster...)
c, err := KubectlCommand(version, args...)
if err != nil {
out.ErrLn("Error caching kubectl: %v", err)