Skip to content

Commit

Permalink
Merge pull request kubernetes#8279 from medyagh/test_ver_upgrade
Browse files Browse the repository at this point in the history
fix parsing kubernetes version flag on an existing minikube
  • Loading branch information
medyagh authored May 27, 2020
2 parents 69d679f + ab3710c commit ba9d1ba
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cmd/minikube/cmd/start_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ba9d1ba

Please sign in to comment.