Revise CRD code markers/validations #5105
Labels
area/CRD
Changes in existing CRDs or introduction of new ones
area/maintenance
Cleanup, refactoring, and other maintenance improvements that don't change functionality.
priority/low
Milestone
Problem statement
#5103 tries to solve #5061 but leaves the CRD validations unreviewed.
For instance:
KongConsumer
'sUsername
is required (enforced in admission webhook) but that could easily be changed to a required field on the CRD level via:This unfortunately can only be done when the
// +kubebuilder:validation:Optional
is removed from the package as that overrides the field level setting.Acceptance criteria
main
The text was updated successfully, but these errors were encountered: