Use kubebuilder CEL support for validation #9999
Labels
kind/improvement
Improvement on an existing feature
triage/accepted
The issue was reviewed and is complete enough to start working on it
Description
Kubebuilder can use CEL for validation with:
// +kubebuilder:validation:XValidation
Example usage: https://github.com/Kong/kubernetes-ingress-controller/blob/1fc18b896dd6022755741fd1ba9200b6b0b36ab5/pkg/apis/configuration/v1/kongplugin_types.go#L36-L38
ref: https://book.kubebuilder.io/reference/markers/crd-validation
It would be good for us because that'd move the validation at the validation webhook and it wouldn't be hard to have this stuff for universal too.
The text was updated successfully, but these errors were encountered: