mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	Check that all the controllers are synced agains api server (#671)
This commit is contained in:
		
				
					committed by
					
						 Miek Gieben
						Miek Gieben
					
				
			
			
				
	
			
			
			
						parent
						
							37050dc217
						
					
				
				
					commit
					7c8d1b0234
				
			| @@ -295,7 +295,15 @@ func endpointsWatchFunc(c *kubernetes.Clientset, ns string, s *labels.Selector) | ||||
| } | ||||
|  | ||||
| func (dns *dnsControl) controllersInSync() bool { | ||||
| 	return dns.svcController.HasSynced() | ||||
| 	hs := dns.svcController.HasSynced() && | ||||
| 		dns.nsController.HasSynced() && | ||||
| 		dns.epController.HasSynced() | ||||
|  | ||||
| 	if dns.podController != nil { | ||||
| 		hs = hs && dns.podController.HasSynced() | ||||
| 	} | ||||
|  | ||||
| 	return hs | ||||
| } | ||||
|  | ||||
| // Stop stops the  controller. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user