Skip to content

Commit 5beacff

Browse files
authored
Merge pull request #10734 from afbjorklund/kubectl-crash
Need to exit if unable to cache kubectl
2 parents f98891b + d5a69dc commit 5beacff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/minikube/cmd/kubectl.go

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ minikube kubectl -- get pods --namespace kube-system`,
5050
c, err := KubectlCommand(version, args...)
5151
if err != nil {
5252
out.ErrLn("Error caching kubectl: %v", err)
53+
os.Exit(1)
5354
}
5455

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

0 commit comments

Comments
 (0)