Merge pull request #10535 from BLasan/issue-10143

Fix minikube kubectl context switching
pull/10531/head
Medya Ghazizadeh 2021-02-20 10:06:05 -08:00 committed by GitHub
commit 9d9aeccf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)