Skip to content

Commit 477c41f

Browse files
committed
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.
1 parent db9f1e9 commit 477c41f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cmd/kubeadm/app/cmd/alpha/alpha.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ func NewCmdAlpha(in io.Reader, out io.Writer) *cobra.Command {
3030
}
3131

3232
cmd.AddCommand(newCmdKubeConfigUtility(out))
33-
cmd.AddCommand(NewCmdSelfhosting(in))
33+
34+
const shDeprecatedMessage = "self-hosting support in kubeadm is deprecated " +
35+
"and will be removed in a future release"
36+
shCommand := NewCmdSelfhosting(in)
37+
shCommand.Deprecated = shDeprecatedMessage
38+
for _, cmd := range shCommand.Commands() {
39+
cmd.Deprecated = shDeprecatedMessage
40+
}
41+
cmd.AddCommand(shCommand)
3442

3543
certsCommand := NewCmdCertsUtility(out)
3644
deprecateCertsCommand(certsCommand)

0 commit comments

Comments
 (0)