mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	move WaitForCacheSync to the sharedInformer package
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
This commit is contained in:
		@@ -186,7 +186,7 @@ func (nm *NamespaceController) Run(workers int, stopCh <-chan struct{}) {
 | 
			
		||||
	klog.Infof("Starting namespace controller")
 | 
			
		||||
	defer klog.Infof("Shutting down namespace controller")
 | 
			
		||||
 | 
			
		||||
	if !controller.WaitForCacheSync("namespace", stopCh, nm.listerSynced) {
 | 
			
		||||
	if !cache.WaitForNamedCacheSync("namespace", stopCh, nm.listerSynced) {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user