Skip to content

Commit

Permalink
delete context when minikube is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha committed Oct 7, 2020
1 parent be196bf commit 65a2618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/minikube/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ func stopProfile(profile string) int {
}

if !keepActive {
if err := kubeconfig.UnsetCurrentContext(profile, kubeconfig.PathFromEnv()); err != nil {
exit.Error(reason.HostKubeconfigUnset, "update config", err)
if err := kubeconfig.DeleteContext(profile, kubeconfig.PathFromEnv()); err != nil {
exit.Error(reason.HostKubeconfigUpdate, "update config", err)
}
}

Expand Down

0 comments on commit 65a2618

Please sign in to comment.