Skip to content

Commit 1d0ca6c

Browse files
authored
Merge pull request #5854 from tstromberg/driver-compat-msg
Improve message when selected driver is incompatible with existing cluster
2 parents e5741c3 + 9d0c3ed commit 1d0ca6c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

cmd/minikube/cmd/start.go

+10-5
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,19 @@ func selectDriver(oldConfig *cfg.Config) string {
615615
return name
616616
}
617617

618-
out.ErrT(out.Conflict, `The existing "{{.profile_name}}" VM that was created using the "{{.old_driver}}" driver, and is incompatible with the "{{.driver}}" driver.`,
618+
out.ErrT(out.Conflict, `The existing "{{.profile_name}}" cluster was created using the "{{.old_driver}}" driver, and cannot be started using the "{{.driver}}" driver.`,
619619
out.V{"profile_name": cfg.GetMachineName(), "driver": name, "old_driver": h.Driver.DriverName()})
620620

621621
out.ErrT(out.Workaround, `To proceed, either:
622-
1) Delete the existing VM using: '{{.command}} delete'
623-
or
624-
2) Restart with the existing driver: '{{.command}} start --vm-driver={{.old_driver}}'`, out.V{"command": minikubeCmd(), "old_driver": h.Driver.DriverName()})
625-
exit.WithCodeT(exit.Config, "Exiting due to driver incompatibility")
622+
623+
1) Delete the existing "{{.profile_name}}" cluster using: '{{.command}} delete'
624+
625+
* or *
626+
627+
2) Start the existing "{{.profile_name}}" cluster using: '{{.command}} start --vm-driver={{.old_driver}}'
628+
`, out.V{"command": minikubeCmd(), "old_driver": h.Driver.DriverName(), "profile_name": cfg.GetMachineName()})
629+
630+
exit.WithCodeT(exit.Config, "Exiting.")
626631
return ""
627632
}
628633

0 commit comments

Comments
 (0)