Reputation: 18630
The CRD-Generator provided by the Fabric8 kubernetes-client allows you to generate the CRD yaml from Java classes. The documentation shows a number of annotations that can be applied to fields in the spec, but I'm interested in being able to define more complex validation rules leveraging the x-kubernetes-validations extension.
Is there a way to define these in the Java classes of the spec and have them produced in the CRD yaml?
Upvotes: 1
Views: 320