Skip to content

Commit 57550bd

Browse files
author
anencore94
committed
Fix bug to delete context when delete minikube
- 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 <[email protected]>
1 parent 9b7573e commit 57550bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/minikube/cmd/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func deleteProfile(profile *pkg_config.Profile) error {
238238
}
239239

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

0 commit comments

Comments
 (0)