mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-07-09 01:41:54 -04:00
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. |
||
|---|---|---|
| .. | ||
| ingress | ||
| ingressclass | ||
| ipaddress | ||
| networkpolicy | ||
| servicecidr | ||