mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
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.
This commit is contained in:
parent
a5a29c54cc
commit
daef96c3f2
@ -20,7 +20,6 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
cmdutil "k8s.io/kubernetes/cmd/kubeadm/app/cmd/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewCmdAlpha returns "kubeadm alpha" command.
|
// NewCmdAlpha returns "kubeadm alpha" command.
|
||||||
@ -34,20 +33,5 @@ func NewCmdAlpha(in io.Reader, out io.Writer) *cobra.Command {
|
|||||||
cmd.AddCommand(newCmdKubeConfigUtility(out))
|
cmd.AddCommand(newCmdKubeConfigUtility(out))
|
||||||
cmd.AddCommand(NewCmdSelfhosting(in))
|
cmd.AddCommand(NewCmdSelfhosting(in))
|
||||||
|
|
||||||
// TODO: This command should be removed as soon as the kubeadm init phase refactoring is completed.
|
|
||||||
// current phases implemented as cobra.Commands should become workflow.Phases, while other utilities
|
|
||||||
// hosted under kubeadm alpha phases command should found a new home under kubeadm alpha (without phases)
|
|
||||||
cmd.AddCommand(newCmdPhase(out))
|
|
||||||
|
|
||||||
return cmd
|
|
||||||
}
|
|
||||||
|
|
||||||
func newCmdPhase(out io.Writer) *cobra.Command {
|
|
||||||
cmd := &cobra.Command{
|
|
||||||
Use: "phase",
|
|
||||||
Short: "Invoke subsets of kubeadm functions separately for a manual install",
|
|
||||||
Long: cmdutil.MacroCommandLongDescription,
|
|
||||||
}
|
|
||||||
|
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user