Merge pull request #78586 from rosti/fix-deprecation-msg

kubeadm: Fix deprecation message for a flag
This commit is contained in:
Kubernetes Prow Robot 2019-06-02 05:12:12 -07:00 committed by GitHub
commit 71fe27eff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,7 @@ func addJoinOtherFlags(flagSet *flag.FlagSet, joinOptions *joinOptions) {
&joinOptions.controlPlane, options.ExperimentalControlPlane, joinOptions.controlPlane,
"Create a new control plane instance on this node",
)
flagSet.MarkDeprecated(options.ExperimentalUploadCerts, fmt.Sprintf("use --%s instead", options.ControlPlane))
flagSet.MarkDeprecated(options.ExperimentalControlPlane, fmt.Sprintf("use --%s instead", options.ControlPlane))
}
// newJoinOptions returns a struct ready for being used for creating cmd join flags.