Open lahabana opened 5 months ago
Triage: let's do PoC first of the most complex object
This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed. If you think this issue is still relevant, please comment on it or attend the next triage meeting.
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.