kubeadm: Fix deprecation message for a flag

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
This commit is contained in:
Rostislav M. Georgiev 2019-05-31 17:07:21 +03:00
parent 8b7e777fe8
commit a402610d37

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.