mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Introduces new testing helpers to simplify testing of declarative validation rules. The new `VerifyValidationEquivalence` and `VerifyUpdateValidationEquivalence` functions reduce boilerplate by encapsulating the logic for: - Toggling the `DeclarativeValidation` and `DeclarativeValidationTakeover` feature gates. - Comparing the validation output from the imperative and declarative paths. The declarative validation tests for CertificateSigningRequest and ReplicationController are updated to use these new, simpler helpers.