Skip to content

Commit

Permalink
Try to uninstall kubernetes on delete, for generic
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Jul 14, 2019
1 parent 837410b commit b334ff2
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 @@ -62,7 +62,7 @@ func runDelete(cmd *cobra.Command, args []string) {
}

// In the case of "none", we want to uninstall Kubernetes as there is no VM to delete
if err == nil && cc.MachineConfig.VMDriver == constants.DriverNone {
if err == nil && (cc.MachineConfig.VMDriver == constants.DriverNone || cc.MachineConfig.VMDriver == constants.DriverGeneric) {
uninstallKubernetes(api, cc.KubernetesConfig, viper.GetString(cmdcfg.Bootstrapper))
}

Expand Down

0 comments on commit b334ff2

Please sign in to comment.