Commit 7c8d1b02 authored by Manuel Alejandro de Brito Fontes's avatar Manuel Alejandro de Brito Fontes Committed by Miek Gieben

Check that all the controllers are synced agains api server (#671)

parent 37050dc2
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment