Skip to content

Commit

Permalink
Fix bug to delete context when delete minikube
Browse files Browse the repository at this point in the history
- when `minikube delete`, minikube must delete its config which
  are set when `minikube start`.
- But, there was some mistakes in the function that does this
  logic

Signed-off-by: anencore94 <anencore94@kaist.ac.kr>
  • Loading branch information
anencore94 committed Feb 7, 2020
1 parent 9b7573e commit 57550bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func deleteProfile(profile *pkg_config.Profile) error {
}

func deleteContext(machineName string) error {
if err := kubeconfig.DeleteContext(constants.KubeconfigPath, machineName); err != nil {
if err := kubeconfig.DeleteContext(machineName, constants.KubeconfigPath); err != nil {
return DeletionError{Err: fmt.Errorf("update config: %v", err), Errtype: Fatal}
}

Expand Down

0 comments on commit 57550bd

Please sign in to comment.