mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
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:
parent
db9f1e91d9
commit
477c41f36d
@ -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