fix(mirror): enforce Helm render version floor - #2435
Conversation
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughMirror discovery now parses extracted Kubernetes constraints and applies Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change enforces a safer minimum Kubernetes version for Helm rendering during mirror discovery. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes satisfy issue ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
mchmarny
left a comment
There was a problem hiding this comment.
Approve: no findings against 93da42c. Exact-head GitHub Actions validation has not run because the first-contributor vetting gate is still awaiting approval; focused race tests, lint, diff checking, and coverage validation passed locally.
Summary
Enforce
defaults.MirrorDefaultKubeVersion(1.33.0) as the Helm rendering floor during mirror discovery. Lower, prerelease, or invalid recipe versions now use the render-safe default.Fixes: #2340
Related: #2336
Type of Change
Component(s) Affected
pkg/mirror,pkg/defaults)Implementation Notes
Use strict semantic version ordering for the render floor so precision-aware matching cannot let major-only or prerelease versions bypass it. This only changes the Kubernetes capability version passed to offline Helm rendering; recipe validation constraints remain unchanged.
Testing
Real CLI verification with Helm
v4.2.4:The recipe resolves Kubernetes
>= 1.30. Before the fix, discovery returned 32 images and the DRA component failed to render. After the fix, it returned 33 images and included:make qualifyreached the full race suite but root-only permission-negative tests failed because paths such as/nonexistentand read-only directories remain writable by root.Risk Assessment
Rollout notes: N/A
Checklist