Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 582 Bytes

generating-crd-classes.md

File metadata and controls

13 lines (8 loc) · 582 Bytes

Generating Java classes from CRD

The TNB framework depends on the fabric8io.kubernetes-client of version 5.12 (at the time of writing this DOC) but the latest CRD generator requires dependencies from kubernetes-client version 6.x.

The io.fabric8:java-generator-cli:6.0.0 seems to be free from those dependencies and it is working with the current TNB framework setup.

  • Download the CRD locally since you may need to tweak it

To generate Java model classes just execute:

jbang io.fabric8:java-generator-cli:6.0.0 -s ${CRD_SOURCE_FOLDER} -t  ${OUTPUT_FOLDER}