← Back to Pull requests

ARO-26793: Relax nodepool minor version skip from +1 to +2 to align with the Kubernetes version skew policy #5239

Closed
unknown closed this pull request without merging on May 26, 2026 12:45 UTC
View on GitHub
unknown unknown commented on May 12, 2026 16:18 UTC
Author

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 for ValidateDesiredNodePoolVersion table tests, plus SyncOnce_SkipMinorVersionFails updated 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 from GetVersionPairWithoutUpgradeEdge to 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, and nodepool_version_controller.go
- GetVersionPairWithoutUpgradeEdge now filters pre-release versions (EC, RC, nightly) to avoid E2E failures from unstable builds lacking proper node images

Diff: 306 lines (+229 / -77) across 3 files Reviewer: JameelB Review duration: 19947m
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
0.63
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 63.4% (MEDIUM) · Higher = larger blast radius
63.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 25% · Safe to merge
25%
Repository