Merge pull request #5106 from manuelbuil/fix_annoying_netpol_log

Fix annoying netpol heartbeat missing log
This commit is contained in:
Manuel Buil 2022-02-10 23:19:34 +01:00 committed by GitHub
commit 5233946ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,10 @@ func Run(ctx context.Context, nodeConfig *config.Node) error {
if err != nil {
return err
}
// Initialize all healthcheck timers. Otherwise, the system reports incorrect heartbeat missing messages
hc.SetAlive()
wg.Add(1)
go hc.RunCheck(healthCh, stopCh, &wg)