OCPBUGS-86221: Update the well-known readiness controller to properly set cluster-operator conditions #901
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 234 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #901"
general
weight: 0.35
liouk
As part of investigating OCPBUGS-86221 it was found that the likely culprit was the well-known readiness controller setting
Progressing=Truewhen a kube-apiserver endpoint was not yet accessible during a node reboot being done by the MCO.This PR attempts to resolve this by aligning the status conditions that are set by this controller to better align with the status condition type meanings as outlined in https://github.com/openshift/api/blob/09730f85d8835712c0412a585685ddadb01e171b/config/v1/types_cluster_operator.go#L151.
To facilitate this, the following changes were made:
Availablegets set toTruewhen _any_ of the kube-apiservers returns a valid response for the well-known endpoint.Progressingis replaced byDegradationObservedwhen _any_ of the kube-apiservers is not sufficiently serving their well-known endpoint. This controller has no operands, makingProgressinga condition it should not be setting.Degradedis set after 5 minutes of a givenDegradationObservedstate continuing to be observed.To ensure the behavior is working as expected, additional unit tests were added to exercise this new behavior.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Introduced time-based controller degradation tracking and reporting for clearer health visibility
Refined well-known endpoint readiness checks with improved aggregation and error classification
Bug Fixes / Behavior Changes
Replaced previous "progressing" condition with a "degradation observed" condition for readiness reporting
Tests
* Added comprehensive unit and end-to-end tests covering endpoint scenarios and degradation timeouts
<!-- end of auto-generated comment: release notes by coderabbit.ai -->