Merge pull request #89055 from tedyu/no-wait-run

Remove wait.Until for running Kubelet Bootstrap
This commit is contained in:
Kubernetes Prow Robot 2020-03-13 15:28:35 -07:00 committed by GitHub
commit 2b63c09d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1129,9 +1129,7 @@ func RunKubelet(kubeServer *options.KubeletServer, kubeDeps *kubelet.Dependencie
func startKubelet(k kubelet.Bootstrap, podCfg *config.PodConfig, kubeCfg *kubeletconfiginternal.KubeletConfiguration, kubeDeps *kubelet.Dependencies, enableCAdvisorJSONEndpoints, enableServer bool) {
// start the kubelet
go wait.Until(func() {
k.Run(podCfg.Updates())
}, 0, wait.NeverStop)
go k.Run(podCfg.Updates())
// start the kubelet server
if enableServer {