make sure to set expiration if not in existing config

pull/12534/head
Sharif Elgamal 2021-09-22 11:22:08 -07:00
parent 2799f24e12
commit 77051a35df
1 changed files with 4 additions and 0 deletions

View File

@ -583,6 +583,10 @@ func upgradeExistingConfig(cmd *cobra.Command, cc *config.ClusterConfig) {
cc.KubernetesConfig.NodePort = viper.GetInt(apiServerPort)
}
if cc.CertExpiration == 0 {
cc.CertExpiration = pkgutil.DefaultCertExpiration
}
}
// updateExistingConfigFromFlags will update the existing config from the flags - used on a second start