Skip to content

Commit

Permalink
reconcile clusteroperator status more frequently (#3006)
Browse files Browse the repository at this point in the history
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 <sanchezl@redhat.com>
  • Loading branch information
sanchezl committed Aug 23, 2023
1 parent 2976198 commit 0dbf79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/operatorstatus/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dbf79d

Please sign in to comment.