mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #95125 from neolit123/1.20-deprecate-alpha-self-hosting
kubeadm: deprecate self-hosting support
This commit is contained in:
commit
df8e3ee5f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user