Add error if a non-default profile name is used with the none driver

pull/5321/head
Thomas Stromberg 2019-09-11 16:07:10 -07:00
parent dd87bbb42b
commit f7b8525aeb
1 changed files with 4 additions and 0 deletions

View File

@ -595,6 +595,10 @@ func validateConfig() {
var cpuCount int
if viper.GetString(vmDriver) == constants.DriverNone {
if cfg.GetMachineName() != constants.DefaultMachineName {
exit.WithCodeT(exit.Config, "The 'none' driver does not support multiple profiles: https://minikube.sigs.k8s.io/docs/reference/drivers/none/")
}
// Uses the gopsutil cpu package to count the number of physical cpu cores
ci, err := cpu.Counts(false)
if err != nil {