Add classListerSynced for WaitForCacheSync

This commit is contained in:
XsWack
2018-11-02 10:13:04 +08:00
committed by xushiwei
parent 608b686729
commit 7fdc9ddbbe

View File

@@ -139,7 +139,7 @@ func (ctrl *csiSnapshotController) Run(workers int, stopCh <-chan struct{}) {
glog.Infof("Starting CSI snapshotter")
defer glog.Infof("Shutting CSI snapshotter")
if !cache.WaitForCacheSync(stopCh, ctrl.snapshotListerSynced, ctrl.contentListerSynced) {
if !cache.WaitForCacheSync(stopCh, ctrl.snapshotListerSynced, ctrl.contentListerSynced, ctrl.classListerSynced) {
glog.Errorf("Cannot sync caches")
return
}