OCPBUGS-83862: Generate autosizing-disabled machineconfig only for master and worker nodes on OCP 4.20 #5885
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 490 lines diff across 6 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.371
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #5885"
general
weight: 0.35
sairameshv
Fixes: OCPBUGS-83862
<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
"Closes: #xxxx"
Please provide the following information:
-->
- What I did
- Due to the change in MachineConfigPool precedence rules (RFE-1916 (https://issues.redhat.com/browse/RFE-1916)), the 50-<custom-mcp-name>-autosizing-disabled MachineConfig takes higher priority over the MachineConfig generated via KubeletConfig. This means that if a user had explicitly enabled autosizing through a KubeletConfig (as per the documentation), the newly generated MachineConfig would silently override that configuration and disable autosizing on custom pool nodes after the upgrade.
- This PR restricts the 50-<mcp_name>-autosizing-disabled MachineConfig generation to only the master and worker pools, preventing custom pool autosizing configurations from being unintentionally overridden. This behavior will be retained when upgrading to 4.21.
Summary of changes
- How to verify it
- Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Release Notes
Bug Fixes
Auto-sizing configuration now applies exclusively to default node pools (master and worker). Custom node pools are excluded from automatic sizing adjustments.
Tests
Updated test coverage to validate that auto-sizing applies only to default pools and that custom pools are properly skipped.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->