Skip to content

Commit

Permalink
operator: update alert on pause of required mcp
Browse files Browse the repository at this point in the history
  • Loading branch information
isabella-janssen committed Nov 20, 2024
1 parent 47a4dc7 commit 46fb474
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/operator/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,9 @@ func (optr *Operator) syncRequiredMachineConfigPools(config *renderConfig, co *c
}
// If we don't account for pause here, we will spin in this loop until we hit the 10 minute timeout because paused pools can't sync.
if pool.Spec.Paused {
if isPoolStatusConditionTrue(pool, mcfgv1.MachineConfigPoolUpdated) {
return false, fmt.Errorf("the required MachineConfigPool %s was paused with no pending updates; no further syncing will occur until it is unpaused", pool.Name)
}
return false, fmt.Errorf("error required MachineConfigPool %s is paused and cannot sync until it is unpaused", pool.Name)
}
return false, nil
Expand Down

0 comments on commit 46fb474

Please sign in to comment.