ARO-26793: Relax nodepool minor version skip from +1 to +2 to align with the Kubernetes version skew policy #5239
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 306 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.343
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #5239"
general
weight: 0.35
JameelB
ARO-26793
### What
Relax nodepool minor version skip validation from +1 to +2, allowing nodepool upgrades to span up to 2 minor versions (e.g., 4.20→4.22).
### Why
1. Kubernetes version skew policy allows kubelet to be N-2 minor versions behind kube-apiserver — our nodepool validation should align with this
2. HCP Replace strategy destroys and recreates nodes at the target version (not in-place upgrade), so there is no step-through requirement
The CP version upper bound (
desiredVersion <= lowestCPVersion) already prevents nodepools from exceeding the CP. The CP upgrade restriction (OpenshiftVersionAtMostOneMinorSkew) is unchanged.No Clusters Service changes are needed — CS already delegates all ARO HCP version policy to the RP (CS MR !322).
Testing
- Unit tests (
internal/validation,internal/admission): +2 case flipped from negative to positive; +3 case added as new boundary- Controller unit tests (
backend/pkg/controllers/upgradecontrollers): same treatment forValidateDesiredNodePoolVersiontable tests, plusSyncOnce_SkipMinorVersionFailsupdated to +3 scenario- Integration tests (
test-integration/frontend): CP bumped from 4.22→4.24, skip-minor-version fixture updated from +2 to +3 target, added step 11 for +2 success case (4.20.8→4.22.0)- E2E tests: added
"should upgrade a nodepool skipping one minor version (+2)"(4.20→4.22); removed Skip from no-edge upgrade test; filtered pre-release versions fromGetVersionPairWithoutUpgradeEdgeto avoid unstable EC builds### Special notes for your reviewer
- Merge order: This PR must be merged after #5153 (Cincinnati edge removal) and before #5184 (downgrade support). It is branched from #5153.
- One-line production change:
validators.go:906—lowest.Minor+1→lowest.Minor+2- The integration test CP version was bumped from 4.22.0 to 4.24.0 so that the +3 skip target (4.23.0) passes the CP upper bound and correctly hits the minor skip check
- Doc comments aligned across
validators.go,admit_nodepool.go, andnodepool_version_controller.go-
GetVersionPairWithoutUpgradeEdgenow filters pre-release versions (EC, RC, nightly) to avoid E2E failures from unstable builds lacking proper node images