fix ipvs delay on sync rules

pull/8/head
Lion-Wei 2018-04-19 17:02:44 +08:00
parent 98968c36d8
commit 74e28b6402
1 changed files with 2 additions and 0 deletions

View File

@ -639,8 +639,10 @@ func (proxier *Proxier) OnEndpointsDelete(endpoints *api.Endpoints) {
func (proxier *Proxier) OnEndpointsSynced() {
proxier.mu.Lock()
proxier.endpointsSynced = true
proxier.setInitialized(proxier.servicesSynced && proxier.endpointsSynced)
proxier.mu.Unlock()
// Sync unconditionally - this is called once per lifetime.
proxier.syncProxyRules()
}