Skip to content

Commit f695c75

Browse files
authored
Merge pull request #892 from cloudnativelabs/proxy-healtchecks
service proxy: ensure hearbeats are sent during sync
2 parents 361d6fe + e04ac66 commit f695c75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controllers/proxy/network_services_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ func (nsc *NetworkServicesController) Run(healthChan chan<- *healthcheck.Control
375375
}
376376

377377
case perform := <-nsc.syncChan:
378+
healthcheck.SendHeartBeat(healthChan, "NSC")
378379
switch perform {
379380
case synctypeAll:
380381
glog.V(1).Info("Performing requested full sync of services")
@@ -391,6 +392,9 @@ func (nsc *NetworkServicesController) Run(healthChan chan<- *healthcheck.Control
391392
glog.Errorf("Error during ipvs sync in network service controller. Error: " + err.Error())
392393
}
393394
}
395+
if err == nil {
396+
healthcheck.SendHeartBeat(healthChan, "NSC")
397+
}
394398

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

0 commit comments

Comments
 (0)