kubernetes-client
                                
                                
                                
                                    kubernetes-client copied to clipboard
                            
                            
                            
                        Support CRD Validation Expression Language (CEL)
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
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?
How can you add this annotation in generated CRDs using CRDGenerator ?
I'm not sure we have support for this in java or crd generator. @andreaTP @metacosm Do you have some idea about this?
Relates to https://github.com/fabric8io/kubernetes-client/pull/4348
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).
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!