do not set global viper config
parent
a108c71ea9
commit
92cf41d686
|
@ -1529,7 +1529,9 @@ func isBaseImageApplicable(drv string) bool {
|
|||
func getKubernetesVersion(old *config.ClusterConfig) string {
|
||||
if viper.GetBool(noKubernetes) {
|
||||
klog.Infof("No Kubernetes flag is set, setting Kubernetes version to %s", constants.NoKubernetesVersion)
|
||||
viper.Set(kubernetesVersion, constants.NoKubernetesVersion)
|
||||
if old != nil {
|
||||
old.KubernetesConfig.KubernetesVersion = constants.NoKubernetesVersion
|
||||
}
|
||||
}
|
||||
|
||||
paramVersion := viper.GetString(kubernetesVersion)
|
||||
|
|
Loading…
Reference in New Issue