fix parsing kubernetes version flag on an existing minikube

pull/8279/head
Medya Gh 2020-05-26 16:20:07 -07:00
parent 20179ef8ee
commit ab3710cc0b
No known key found for this signature in database
GPG Key ID: 7CF7792C6DF3245C
1 changed files with 1 additions and 8 deletions

View File

@ -479,14 +479,7 @@ func updateExistingConfigFromFlags(cmd *cobra.Command, existing *config.ClusterC
}
if cmd.Flags().Changed(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)
}
cc.KubernetesConfig.KubernetesVersion = getKubernetesVersion(existing)
}
if cmd.Flags().Changed(apiServerName) {