fix(api): enforce EtcdSnapshot spec immutability - #364
fix(api): enforce EtcdSnapshot spec immutability#364Immanuel Tikhonov (immanuwell) wants to merge 1 commit into
Conversation
Signed-off-by: immanuwell <pchpr.00@list.ru>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change makes ChangesEtcdSnapshot immutability
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The PR makes EtcdSnapshot specs immutable while preserving metadata and status updates, preventing edits that could diverge from the running Job. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
EtcdSnapshotis documented as immutable, but the CRD currently accepts spec editsRepro:
EtcdSnapshotand let its Job startspec.clusterReforspec.destinationwithkubectl editThis adds a CEL transition rule for the whole spec.
Metadata and status updates still work, so normal reconciliation stays intact
Tested with
make testSummary by CodeRabbit
New Features
Bug Fixes