Skip to content

Commit 99dd9d3

Browse files
committed
fix Remove hyperkube short aliases
1 parent bd12b01 commit 99dd9d3

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

cmd/hyperkube/main.go

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -87,30 +87,10 @@ func commandFor(basename string, defaultCommand *cobra.Command, commands []func(
8787
func NewHyperKubeCommand(stopCh <-chan struct{}) (*cobra.Command, []func() *cobra.Command) {
8888
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
8989
// command to get executed
90-
apiserver := func() *cobra.Command {
91-
ret := kubeapiserver.NewAPIServerCommand(stopCh)
92-
// add back some unfortunate aliases that should be removed
93-
ret.Aliases = []string{"apiserver"}
94-
return ret
95-
}
96-
controller := func() *cobra.Command {
97-
ret := kubecontrollermanager.NewControllerManagerCommand()
98-
// add back some unfortunate aliases that should be removed
99-
ret.Aliases = []string{"controller-manager"}
100-
return ret
101-
}
102-
proxy := func() *cobra.Command {
103-
ret := kubeproxy.NewProxyCommand()
104-
// add back some unfortunate aliases that should be removed
105-
ret.Aliases = []string{"proxy"}
106-
return ret
107-
}
108-
scheduler := func() *cobra.Command {
109-
ret := kubescheduler.NewSchedulerCommand()
110-
// add back some unfortunate aliases that should be removed
111-
ret.Aliases = []string{"scheduler"}
112-
return ret
113-
}
90+
apiserver := func() *cobra.Command { return kubeapiserver.NewAPIServerCommand(stopCh) }
91+
controller := func() *cobra.Command { return kubecontrollermanager.NewControllerManagerCommand() }
92+
proxy := func() *cobra.Command { return kubeproxy.NewProxyCommand() }
93+
scheduler := func() *cobra.Command { return kubescheduler.NewSchedulerCommand() }
11494
kubectlCmd := func() *cobra.Command { return kubectl.NewDefaultKubectlCommand() }
11595
kubelet := func() *cobra.Command { return kubelet.NewKubeletCommand(stopCh) }
11696
cloudController := func() *cobra.Command { return cloudcontrollermanager.NewCloudControllerManagerCommand() }

0 commit comments

Comments
 (0)