Files
cozystack/packages
Myasnikov Daniil 43ef456d84 feat(platform): gate deletion-protection VAP on Kubernetes 1.30+ capability
Address review feedback from gemini-code-assist on
packages/core/platform/templates/deletion-protection.yaml:42:
wrap the ValidatingAdmissionPolicy and Binding in a Helm capability
check so the template stays renderable on clusters that pre-date 1.30
(when ValidatingAdmissionPolicy graduated to GA). The check targets the
specific Kind, not the API group/version — admissionregistration.k8s.io/v1
itself has existed since 1.16 for ValidatingWebhookConfiguration, so the
group/version alone is not a meaningful capability gate.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-05-26 14:18:22 +05:00
..