kumahq / kuma

🐻 The multi-zone service mesh for containers, Kubernetes and VMs. Built with Envoy. CNCF Sandbox Project.
https://kuma.io/install
Apache License 2.0
3.63k stars 331 forks source link

Use kubebuilder CEL support for validation #9999

Open lahabana opened 5 months ago

lahabana commented 5 months ago

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.

jakubdyszkiewicz commented 5 months ago

Triage: let's do PoC first of the most complex object

github-actions[bot] commented 2 months ago

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.