@@ -32,7 +32,6 @@ import (
32
32
"github.com/spf13/cobra"
33
33
"github.com/spf13/pflag"
34
34
35
- "k8s.io/apiserver/pkg/server"
36
35
cliflag "k8s.io/component-base/cli/flag"
37
36
"k8s.io/component-base/logs"
38
37
cloudcontrollermanager "k8s.io/kubernetes/cmd/cloud-controller-manager/app"
@@ -49,7 +48,7 @@ import (
49
48
func main () {
50
49
rand .Seed (time .Now ().UnixNano ())
51
50
52
- hyperkubeCommand , allCommandFns := NewHyperKubeCommand (server . SetupSignalHandler () )
51
+ hyperkubeCommand , allCommandFns := NewHyperKubeCommand ()
53
52
54
53
// TODO: once we switch everything over to Cobra commands, we can go back to calling
55
54
// cliflag.InitFlags() (by removing its pflag.Parse() call). For now, we have to set the
@@ -84,15 +83,15 @@ func commandFor(basename string, defaultCommand *cobra.Command, commands []func(
84
83
}
85
84
86
85
// NewHyperKubeCommand is the entry point for hyperkube
87
- func NewHyperKubeCommand (stopCh <- chan struct {} ) (* cobra.Command , []func () * cobra.Command ) {
86
+ func NewHyperKubeCommand () (* cobra.Command , []func () * cobra.Command ) {
88
87
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
89
88
// command to get executed
90
- apiserver := func () * cobra.Command { return kubeapiserver .NewAPIServerCommand (stopCh ) }
89
+ apiserver := func () * cobra.Command { return kubeapiserver .NewAPIServerCommand () }
91
90
controller := func () * cobra.Command { return kubecontrollermanager .NewControllerManagerCommand () }
92
91
proxy := func () * cobra.Command { return kubeproxy .NewProxyCommand () }
93
92
scheduler := func () * cobra.Command { return kubescheduler .NewSchedulerCommand () }
94
93
kubectlCmd := func () * cobra.Command { return kubectl .NewDefaultKubectlCommand () }
95
- kubelet := func () * cobra.Command { return kubelet .NewKubeletCommand (stopCh ) }
94
+ kubelet := func () * cobra.Command { return kubelet .NewKubeletCommand () }
96
95
cloudController := func () * cobra.Command { return cloudcontrollermanager .NewCloudControllerManagerCommand () }
97
96
98
97
commandFns := []func () * cobra.Command {
0 commit comments