kubeadm: deprecate self-hosting support

Deprecate the experimental command "alpha self-hosting" and its
sub-command "pivot" that can be used to create a self-hosting
control-plane from static Pods.
This commit is contained in:
Lubomir I. Ivanov 2020-09-28 22:24:24 +03:00
parent db9f1e91d9
commit 477c41f36d

View File

@ -30,7 +30,15 @@ func NewCmdAlpha(in io.Reader, out io.Writer) *cobra.Command {
}
cmd.AddCommand(newCmdKubeConfigUtility(out))
cmd.AddCommand(NewCmdSelfhosting(in))
const shDeprecatedMessage = "self-hosting support in kubeadm is deprecated " +
"and will be removed in a future release"
shCommand := NewCmdSelfhosting(in)
shCommand.Deprecated = shDeprecatedMessage
for _, cmd := range shCommand.Commands() {
cmd.Deprecated = shDeprecatedMessage
}
cmd.AddCommand(shCommand)
certsCommand := NewCmdCertsUtility(out)
deprecateCertsCommand(certsCommand)