Skip to content

Commit df8e3ee

Browse files
authored
Merge pull request kubernetes#95125 from neolit123/1.20-deprecate-alpha-self-hosting
kubeadm: deprecate self-hosting support
2 parents 3a987d5 + 477c41f commit df8e3ee

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)