feat(t8s-cluster/management-cluster): enable MutatingAdmissionPolicy#2046
Conversation
📝 WalkthroughWalkthroughHelm template updates for t8s-cluster that refine Kubernetes feature gate version constraints. Modifies version gating for Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Code Review
This pull request introduces support for the MutatingAdmissionPolicy feature gate and its corresponding runtime-config for Kubernetes versions 1.32.0 and later. It also adds a version upper bound to the KubeletEnsureSecretPulledImages feature gate. Feedback focuses on ensuring the MutatingAdmissionPolicy admission plugin is also enabled, improving the runtime-config logic to append values instead of overwriting them, and questioning the necessity of the speculative version upper bound.
There was a problem hiding this comment.
Pull request overview
Enables Kubernetes MutatingAdmissionPolicy support in the t8s-cluster management-cluster ClusterClass by adjusting feature-gate handling and apiserver arguments based on Kubernetes version.
Changes:
- Add
MutatingAdmissionPolicyto apiserver feature gates for Kubernetes>= 1.32.0. - Constrain
KubeletEnsureSecretPulledImagesfeature gate to a bounded Kubernetes version range. - Add an apiserver
runtime-configsetting gated on Kubernetes>= 1.32.0.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
29ce504 to
f0862fb
Compare
Summary by CodeRabbit
KubeletEnsureSecretPulledImages(now 1.33.0 - 1.35.0)MutatingAdmissionPolicyfeature gate (Kubernetes 1.32.0+)