mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
fix Remove hyperkube short aliases
This commit is contained in:
parent
bd12b01387
commit
99dd9d3c8e
@ -87,30 +87,10 @@ func commandFor(basename string, defaultCommand *cobra.Command, commands []func(
|
|||||||
func NewHyperKubeCommand(stopCh <-chan struct{}) (*cobra.Command, []func() *cobra.Command) {
|
func NewHyperKubeCommand(stopCh <-chan struct{}) (*cobra.Command, []func() *cobra.Command) {
|
||||||
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
|
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
|
||||||
// command to get executed
|
// command to get executed
|
||||||
apiserver := func() *cobra.Command {
|
apiserver := func() *cobra.Command { return kubeapiserver.NewAPIServerCommand(stopCh) }
|
||||||
ret := kubeapiserver.NewAPIServerCommand(stopCh)
|
controller := func() *cobra.Command { return kubecontrollermanager.NewControllerManagerCommand() }
|
||||||
// add back some unfortunate aliases that should be removed
|
proxy := func() *cobra.Command { return kubeproxy.NewProxyCommand() }
|
||||||
ret.Aliases = []string{"apiserver"}
|
scheduler := func() *cobra.Command { return kubescheduler.NewSchedulerCommand() }
|
||||||
return ret
|
|
||||||
}
|
|
||||||
controller := func() *cobra.Command {
|
|
||||||
ret := kubecontrollermanager.NewControllerManagerCommand()
|
|
||||||
// add back some unfortunate aliases that should be removed
|
|
||||||
ret.Aliases = []string{"controller-manager"}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
proxy := func() *cobra.Command {
|
|
||||||
ret := kubeproxy.NewProxyCommand()
|
|
||||||
// add back some unfortunate aliases that should be removed
|
|
||||||
ret.Aliases = []string{"proxy"}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
scheduler := func() *cobra.Command {
|
|
||||||
ret := kubescheduler.NewSchedulerCommand()
|
|
||||||
// add back some unfortunate aliases that should be removed
|
|
||||||
ret.Aliases = []string{"scheduler"}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
kubectlCmd := func() *cobra.Command { return kubectl.NewDefaultKubectlCommand() }
|
kubectlCmd := func() *cobra.Command { return kubectl.NewDefaultKubectlCommand() }
|
||||||
kubelet := func() *cobra.Command { return kubelet.NewKubeletCommand(stopCh) }
|
kubelet := func() *cobra.Command { return kubelet.NewKubeletCommand(stopCh) }
|
||||||
cloudController := func() *cobra.Command { return cloudcontrollermanager.NewCloudControllerManagerCommand() }
|
cloudController := func() *cobra.Command { return cloudcontrollermanager.NewCloudControllerManagerCommand() }
|
||||||
|
Loading…
Reference in New Issue
Block a user