Merge pull request #110901 from ping035627/k8s-220701

Add failure handling of the desiredStateOfWorldPopulator start
This commit is contained in:
Kubernetes Prow Robot 2022-07-05 11:27:31 -07:00 committed by GitHub
commit 850a5ffda6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,11 @@ var _ PluginManager = &pluginManager{}
func (pm *pluginManager) Run(sourcesReady config.SourcesReady, stopCh <-chan struct{}) {
defer runtime.HandleCrash()
pm.desiredStateOfWorldPopulator.Start(stopCh)
if err := pm.desiredStateOfWorldPopulator.Start(stopCh); err != nil {
klog.ErrorS(err, "The desired_state_of_world populator (plugin watcher) starts failed!")
return
}
klog.V(2).InfoS("The desired_state_of_world populator (plugin watcher) starts")
klog.InfoS("Starting Kubelet Plugin Manager")