Merge pull request #95125 from neolit123/1.20-deprecate-alpha-self-hosting

kubeadm: deprecate self-hosting support
This commit is contained in:
Kubernetes Prow Robot 2020-09-29 00:37:25 -07:00 committed by GitHub
commit df8e3ee5f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,15 @@ func NewCmdAlpha(in io.Reader, out io.Writer) *cobra.Command {
} }
cmd.AddCommand(newCmdKubeConfigUtility(out)) 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) certsCommand := NewCmdCertsUtility(out)
deprecateCertsCommand(certsCommand) deprecateCertsCommand(certsCommand)