Do not generate unnecessary goroutine

This commit is contained in:
Shintaro Murakami
2019-04-23 16:22:14 +09:00
parent 40f691a416
commit f8e81337da
5 changed files with 5 additions and 5 deletions

View File

@@ -1034,7 +1034,7 @@ func (pm *VolumePluginMgr) Run(stopCh <-chan struct{}) {
// start informer for CSIDriver
if utilfeature.DefaultFeatureGate.Enabled(features.CSIDriverRegistry) {
informerFactory := kletHost.GetInformerFactory()
go informerFactory.Start(stopCh)
informerFactory.Start(stopCh)
}
}
}