Skip to content

Commit

Permalink
reconcile clusteroperator status more frequently
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 <[email protected]>
  • Loading branch information
sanchezl authored and perdasilva committed Aug 23, 2023
1 parent 2976198 commit 4e187c0
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 4e187c0

Please sign in to comment.