From 100bf56a3f9e8bd22940298f4bdbcc50cc1418a0 Mon Sep 17 00:00:00 2001 From: Luis Sanchez Date: Fri, 4 Aug 2023 14:01:27 -0400 Subject: [PATCH] reconcile clusteroperator status more frequently If status is modified, the operator must set status to proper values. This ensures that accidents cannot permanently reset status and gives a clear indication that the operator is "live". This came up as important when operators were NOT live, during cert rotations and we had no indication of problems. Signed-off-by: Luis Sanchez --- pkg/lib/operatorstatus/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lib/operatorstatus/status.go b/pkg/lib/operatorstatus/status.go index 4067392c6e9..bb0b092d859 100644 --- a/pkg/lib/operatorstatus/status.go +++ b/pkg/lib/operatorstatus/status.go @@ -228,7 +228,7 @@ func MonitorClusterStatus(name string, syncCh <-chan error, stopCh <-chan struct // if we've reported success, we can sleep longer, otherwise we want to keep watching for // successful if successfulSyncs > 0 { - time.Sleep(5 * time.Minute) + time.Sleep(25 * time.Second) } }, 5*time.Second, stopCh)