Merge pull request #95125 from neolit123/1.20-deprecate-alpha-self-hosting
kubeadm: deprecate self-hosting support
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user