Fix hyperkube kubelet --experimental-dockershim

Fixes #54424
This commit is contained in:
Ivan Shvedunov 2017-10-24 21:50:40 +03:00
parent 0829376d8b
commit ea5f58c77c

View File

@ -39,6 +39,9 @@ func NewKubelet() (*Server, error) {
configuration data, with the running set of containers by starting or stopping
Docker containers.`,
Run: func(_ *Server, _ []string, stopCh <-chan struct{}) error {
if s.ExperimentalDockershim {
return app.RunDockershim(&s.KubeletFlags, &s.KubeletConfiguration)
}
return app.Run(s, nil)
},
}