mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Split kubelet server initialization into two parts
First is initializing a KubeletConfig that starts no background processes. Second is running the config. Provide a legacy path that won't impact older callers while making it easier to customize the interfaces passed to the Kubelet. Used by OpenShift to inject some custom interfaces to the Kubelet for config management.
This commit is contained in:
@@ -32,8 +32,8 @@ func NewKubelet() *Server {
|
||||
queries Docker to see what is currently running. It synchronizes the
|
||||
configuration data, with the running set of containers by starting or stopping
|
||||
Docker containers.`,
|
||||
Run: func(_ *Server, args []string) error {
|
||||
return s.Run(args)
|
||||
Run: func(_ *Server, _ []string) error {
|
||||
return s.Run(nil)
|
||||
},
|
||||
}
|
||||
s.AddFlags(hks.Flags())
|
||||
|
Reference in New Issue
Block a user