Skip to content

Commit

Permalink
ensure hearbeats are sent during sync done for add/delete/update even…
Browse files Browse the repository at this point in the history
…ts of service, endpoints

Fixes #879
  • Loading branch information
murali-reddy committed May 4, 2020
1 parent f3ea1a6 commit e04ac66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controllers/proxy/network_services_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ func (nsc *NetworkServicesController) Run(healthChan chan<- *healthcheck.Control
}

case perform := <-nsc.syncChan:
healthcheck.SendHeartBeat(healthChan, "NSC")
switch perform {
case synctypeAll:
glog.V(1).Info("Performing requested full sync of services")
Expand All @@ -391,6 +392,9 @@ func (nsc *NetworkServicesController) Run(healthChan chan<- *healthcheck.Control
glog.Errorf("Error during ipvs sync in network service controller. Error: " + err.Error())
}
}
if err == nil {
healthcheck.SendHeartBeat(healthChan, "NSC")
}

case <-t.C:
glog.V(1).Info("Performing periodic sync of ipvs services")
Expand Down

0 comments on commit e04ac66

Please sign in to comment.