kubernetes/test/declarative_validation/networking
Lalit Chauhan 7fead81bc9 validation: align imperative and declarative validation for ObjectMeta
Update the imperative validation for `ObjectMeta.generation` and `ObjectMeta.managedFields` to align with the newly introduced declarative validation rules:

1. Mark the non-negative `generation` check as covered by declarative validation.
2. Refactor `ValidateManagedFields` to return `field.Required` (for empty operations) and `field.NotSupported` (for invalid operations) to match the declarative schema, and mark them as covered by declarative validation.
3. Update the common `ObjectMeta` test suite in `test/declarative_validation/meta/objectmeta.go` to assert these new validation errors, marking them as alpha.
4. Clean up hand-written declarative validation tests by removing the manual `apiVersions` variable, which is now provided by the generated code.
5. Remove the unused/redundant `persistentvolumeclaim` declarative validation test package, as `PersistentVolumeClaim` is marked `opaqueType` and thus does not undergo declarative `ObjectMeta` validation, making equivalence tests inapplicable.
2026-07-08 20:23:14 +00:00
..
ingress validation: align imperative and declarative validation for ObjectMeta 2026-07-08 20:23:14 +00:00
ingressclass api: regenerate declarative validation tests 2026-07-08 20:23:10 +00:00
ipaddress api: regenerate declarative validation tests 2026-07-08 20:23:10 +00:00
networkpolicy api: regenerate declarative validation tests 2026-07-08 20:23:10 +00:00
servicecidr validation: align imperative and declarative validation for ObjectMeta 2026-07-08 20:23:14 +00:00