You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4dccba9
Browse filesBrowse the repository at this point in the historyBrowse files
Wait for webhook certificate secrets before checking endpoints
Fixes operator crash-loop when webhook certificate secrets don't exist yet.
Operators with ENABLE_WEBHOOKS=true mount certificate secrets as volumes.
If these secrets don't exist when the pod starts (cert-manager creates
them asynchronously), the pod fails with FailedMount and crash-loops.
This was surfaced by the new OLM-based CI flow which deploys operators
and immediately proceeds to deploy OpenStackControlPlane, not giving
cert-manager enough time to create the certificate secrets.
The controller now checks for required webhook certificate secrets before
checking service endpoints, preventing the controller itself from
crash-looping while waiting for cert-manager to finish.
This makes the operator robust to edge cases like certificate regeneration
or slow cert-manager processing.
Additional improvements:
- Filter webhook cert secrets to only check enabled operators, skipping
operators disabled via OperatorOverrides (replicas: 0)
- Add unit tests for cert validation logic and disabled operator filtering
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Log.Info("Waiting for all deployments to be running", "current", deploymentsRunning, "expected", *instance.Status.EnabledOperatorCount, "pending", deploymentsPending)
0 commit comments