For the API reference docs go here
- Go version 1.24.x (1.24.4 or higher) - download for your development environment here.
CodeReady ToolChain API is built using Go modules.
The API types are defined in the api/v1alpha1/*_types.go files. After modifying these files, you must regenerate the derived files (deepcopy, OpenAPI, CRD manifests, and API reference docs) by running:
make generateThis command runs the following steps:
- Generate deepcopy and CRDs — uses controller-gen to regenerate
zz_generated.deepcopy.goand the CRD manifests inconfig/crd/bases/. - Generate OpenAPI — uses openapi-gen to regenerate
zz_generated.openapi.go. - Generate API reference docs — uses crd-ref-docs to regenerate
api/v1alpha1/docs/apiref.adoc. - Dispatch CRDs — copies the generated CRD
.yamlfiles to thehost-operatorandmember-operatorrepositories.
Note: The CRD dispatch step assumes the
host-operatorandmember-operatorrepositories have been checked out alongside this repository and that they are in a clean state, meaning that they have no pending changes besides previous versions of the CRD files.
Note: After running
make generate, you are expected to create PRs in this repository as well as in thehost-operatorandmember-operatorrepositories where the CRD changes were propagated. Please do not mix other code changes with CRD changes — it is always preferred to promote CRD changes separately for easier PR review.
