@@ -182,6 +182,14 @@ func runStart(cmd *cobra.Command, args []string) {
182182 validateProfileName ()
183183 }
184184
185+ if existing .Driver == driver .AliasNone || existing .VMDriver == driver .AliasNone {
186+ // If a cluster was created before or with minikube v1.17.1 the driver
187+ // name is stored as `none` in the config. We need to change that to
188+ // `native` for future processing.
189+ existing .Driver = driver .Native
190+ existing .VMDriver = driver .Native
191+ }
192+
185193 validateSpecifiedDriver (existing )
186194 validateKubernetesVersion (existing )
187195
@@ -355,7 +363,7 @@ func startWithDriver(cmd *cobra.Command, starter node.Starter, existing *config.
355363 numNodes = len (existing .Nodes )
356364 }
357365 if numNodes > 1 {
358- if driver .IsNative (starter .Cfg .Driver ) {
366+ if driver .BareMetal (starter .Cfg .Driver ) {
359367 exit .Message (reason .DrvUnsupportedMulti , "The native driver is not compatible with multi-node clusters." )
360368 } else {
361369 if existing == nil {
@@ -989,7 +997,7 @@ func validateRequestedMemorySize(req int, drvName string) {
989997// validateCPUCount validates the cpu count matches the minimum recommended & not exceeding the available cpu count
990998func validateCPUCount (drvName string ) {
991999 var cpuCount int
992- if driver .IsNative (drvName ) {
1000+ if driver .BareMetal (drvName ) {
9931001
9941002 // Uses the gopsutil cpu package to count the number of logical cpu cores
9951003 ci , err := cpu .Counts (true )
@@ -1106,7 +1114,7 @@ func validateFlags(cmd *cobra.Command, drvName string) {
11061114 }
11071115 }
11081116
1109- if driver .IsNative (drvName ) {
1117+ if driver .BareMetal (drvName ) {
11101118 if ClusterFlagValue () != constants .DefaultClusterName {
11111119 exit .Message (reason .DrvUnsupportedProfile , "The '{{.name}} driver does not support multiple profiles: https://minikube.sigs.k8s.io/docs/reference/drivers/none/" , out.V {"name" : drvName })
11121120 }
0 commit comments