From 062fe63dd19153b8fdfef02c7f15835f1bc7a60a Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 10 Feb 2022 19:53:36 +0100 Subject: [PATCH] Fix annoying netpol log Signed-off-by: Manuel Buil --- pkg/agent/netpol/netpol.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/agent/netpol/netpol.go b/pkg/agent/netpol/netpol.go index fdd7b29713..6df0e727ce 100644 --- a/pkg/agent/netpol/netpol.go +++ b/pkg/agent/netpol/netpol.go @@ -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)