kubernetes-client icon indicating copy to clipboard operation
kubernetes-client copied to clipboard

Support CRD Validation Expression Language (CEL)

Open brainwang opened this issue 3 years ago • 6 comments

Is your enhancement related to a problem? Please describe

No.

Describe the solution you'd like

Support CRD Validation Expression Language (CEL), which was introduced in https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/2876-crd-validation-expression-language/README.md

Describe alternatives you've considered

No response

Additional context

No response

brainwang avatar Aug 31 '22 07:08 brainwang

Umm, we already seem to have this in our model:

https://github.com/fabric8io/kubernetes-client/blob/d6e6cc35c689f5dd1920d95a73aa77174a645f43/kubernetes-model-generator/kubernetes-model-apiextensions/src/generated/java/io/fabric8/kubernetes/api/model/apiextensions/v1/JSONSchemaProps.java#L198-L199

Have you tried this on Kubernetes 1.25.0 cluster?

rohanKanojia avatar Sep 01 '22 15:09 rohanKanojia

How can you add this annotation in generated CRDs using CRDGenerator ?

derlin avatar Sep 12 '22 10:09 derlin

I'm not sure we have support for this in java or crd generator. @andreaTP @metacosm Do you have some idea about this?

rohanKanojia avatar Sep 12 '22 10:09 rohanKanojia

Relates to https://github.com/fabric8io/kubernetes-client/pull/4348

manusa avatar Sep 20 '22 09:09 manusa

There is a cel implementation for Java: https://github.com/projectnessie/cel-java

it would be interesting to receive proposals on how this can play with the current API in the different cases(crd-generator, java-generator, CR validations on the client side).

andreaTP avatar Oct 04 '22 14:10 andreaTP

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

stale[bot] avatar Jan 02 '23 18:01 stale[bot]