Skip to content

Commit daef96c

Browse files
committed
kubeadm: remove stray "alpha phase" command
This command had a TODO to be removed once kubeadm init phases are added. Remove the command as init phases are in place already.
1 parent a5a29c5 commit daef96c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"io"
2121

2222
"github.com/spf13/cobra"
23-
cmdutil "k8s.io/kubernetes/cmd/kubeadm/app/cmd/util"
2423
)
2524

2625
// NewCmdAlpha returns "kubeadm alpha" command.
@@ -34,20 +33,5 @@ func NewCmdAlpha(in io.Reader, out io.Writer) *cobra.Command {
3433
cmd.AddCommand(newCmdKubeConfigUtility(out))
3534
cmd.AddCommand(NewCmdSelfhosting(in))
3635

37-
// TODO: This command should be removed as soon as the kubeadm init phase refactoring is completed.
38-
// current phases implemented as cobra.Commands should become workflow.Phases, while other utilities
39-
// hosted under kubeadm alpha phases command should found a new home under kubeadm alpha (without phases)
40-
cmd.AddCommand(newCmdPhase(out))
41-
42-
return cmd
43-
}
44-
45-
func newCmdPhase(out io.Writer) *cobra.Command {
46-
cmd := &cobra.Command{
47-
Use: "phase",
48-
Short: "Invoke subsets of kubeadm functions separately for a manual install",
49-
Long: cmdutil.MacroCommandLongDescription,
50-
}
51-
5236
return cmd
5337
}

0 commit comments

Comments
 (0)