OCPEDGE-2747: feat: add topology transition controller for day-2 SNO to HA transitions #495
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 244 lines diff across 3 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.329
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #495"
general
weight: 0.35
jeff-roche
Summary
TopologyTransitionControllergated behind theMutableTopologyfeature gate that manages day-2 control plane topology transitions (initial: SNO → HA Compact on platform type None)RunOperatorwith dedicated informer factories for the Etcd operator CR and openshift-etcd ConfigMapsController behavior
1. Preflight validation — verifies control plane node count, readiness, schedulability, etcd quorum, voting members, and absence of dedicated workers before allowing a transition
2. Condition management — sets
TopologyTransitionControllerProgressingandTopologyTransitionControllerUpgradeableconditions to block cluster upgrades during transitions3. Status update — applies the topology change to Infrastructure status with conflict retry and spec-change detection
4. Reconciliation monitoring — waits for all ClusterOperators to stabilize (Available=True, Progressing=False, Degraded=False) with a 5-minute soak timer before re-enabling upgrades
5. Crash recovery — handles partial failures where operator conditions were set but the Infrastructure status update didn't complete
Test plan
go test -v -count=1 ./pkg/operator/topology_transition_controller/...(46 tests covering controller sync, preflight validators, reconciliation checks, soak timer, crash recovery, and spec-change-during-retry)make buildsucceedsmake verifypasses (gofmt, govet, deps, bindata)spec.controlPlaneTopology: HighlyAvailable, verify transition completes and upgrades are re-enabledAssisted-by: Claude <noreply@anthropic.com>