Merge pull request #83530 from neolit123/1.17-kubeadm-deprecate-upgrade-config

kubeadm: add warning about 'upgrade apply/plan --config'
This commit is contained in:
Kubernetes Prow Robot 2019-10-10 20:31:39 -07:00 committed by GitHub
commit 4b2a326b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,7 @@ func enforceRequirements(flags *applyPlanFlags, dryRun bool, newK8sVersion strin
var cfg *kubeadmapi.InitConfiguration
if flags.cfgPath != "" {
klog.Warning("WARNING: Usage of the --config flag for reconfiguring the cluster during upgrade is not recommended!")
cfg, err = configutil.LoadInitConfigurationFromFile(flags.cfgPath)
} else {
cfg, err = configutil.FetchInitConfigurationFromCluster(client, os.Stdout, "upgrade/config", false)