From 46fb4747c00aa26be68b004a64c5c1a4d9b1fbe4 Mon Sep 17 00:00:00 2001 From: Isabella Janssen Date: Wed, 20 Nov 2024 16:00:38 -0500 Subject: [PATCH] operator: update alert on pause of required mcp --- pkg/operator/sync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/operator/sync.go b/pkg/operator/sync.go index 720f04b0e0..8e3e48d6ce 100644 --- a/pkg/operator/sync.go +++ b/pkg/operator/sync.go @@ -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