OCPBUGS-86643: Skip control-plane label migration on External topolog… #6205
All Vouch review confidence checks passed
Residual risk 0.40 = Change Risk (0.72) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.72 · 342 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.349
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.072
Real PR Conversation Timeline
1 comments
"Review active on #6205"
general
weight: 0.35
PoornimaSingour
Jira
https://issues.redhat.com/browse/OCPBUGS-86643
Problem
After upgrading HyperShift HostedClusters from 4.20.x to 4.21.x, dedicated
worker nodes incorrectly receive
node-role.kubernetes.io/control-plane.Hub compact nodes that are real control-plane nodes are expected to carry
both
masterandcontrol-planelabels; guest HostedCluster worker nodesmust not.
Customer environment:
NodePoolobjects exist on the HUB (clustersnamespace), not inside guest clusterscontrol-planelabel observed on existing HostedCluster worker nodesRoot cause
MCO
reconcileMaster()callsupdateMasterNodeControlPlaneLabel()(added forOCPBUGS-58180) to migrate legacy
master→control-planelabels. This runswithout excluding External topology clusters (HyperShift guest clusters),
where there is no in-cluster control plane.
Fix
Skip
reconcileMaster()whenControllerConfig.spec.infra.status.controlPlaneTopology == External.Files changed
pkg/controller/node/node_controller.go— guard inreconcileMaster()pkg/controller/node/node_controller_test.go— unit testsLocal testing
Environment: macOS, branch ocpbugs-86643-skip-cp-label-external-topology, commit 73db7395
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Bug Fixes
Improved node controller efficiency by skipping unnecessary reconciliation steps for external topology cluster configurations.
Fixed control plane label management to occur only after topology verification.
Tests
Added test coverage for node reconciliation behavior across different cluster topology modes.
Added test validation for simultaneous off-cluster and on-cluster machine configuration layering.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->