diff --git a/cmd/minikube/cmd/start_flags.go b/cmd/minikube/cmd/start_flags.go index 5b768a526702..fcd117e7a33d 100644 --- a/cmd/minikube/cmd/start_flags.go +++ b/cmd/minikube/cmd/start_flags.go @@ -471,7 +471,14 @@ func updateExistingConfigFromFlags(cmd *cobra.Command, existing *config.ClusterC } if cmd.Flags().Changed(kubernetesVersion) { - existing.KubernetesConfig.KubernetesVersion = viper.GetString(kubernetesVersion) + switch viper.GetString(kubernetesVersion) { + case "latest": + existing.KubernetesConfig.KubernetesVersion = constants.NewestKubernetesVersion + case "stable": + existing.KubernetesConfig.KubernetesVersion = constants.DefaultKubernetesVersion + default: + existing.KubernetesConfig.KubernetesVersion = viper.GetString(kubernetesVersion) + } } if cmd.Flags().Changed(apiServerName) {