Check that all the controllers are synced agains api server (#671)
This commit is contained in:
parent
37050dc217
commit
7c8d1b0234
1 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue