Visitar URL original
api module - github.com/codeready-toolchain/api - Go Packages

api

module
v0.0.0-...-10cbbf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0

README

ToolChain API

Go Report Card GoDoc

For the API reference docs go here

Prerequisites

  • Go version 1.24.x (1.24.4 or higher) - download for your development environment here.

CodeReady ToolChain API is built using Go modules.

Modifying the API Types

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 generate

This command runs the following steps:

  1. Generate deepcopy and CRDs — uses controller-gen to regenerate zz_generated.deepcopy.go and the CRD manifests in config/crd/bases/.
  2. Generate OpenAPI — uses openapi-gen to regenerate zz_generated.openapi.go.
  3. Generate API reference docs — uses crd-ref-docs to regenerate api/v1alpha1/docs/apiref.adoc.
  4. Dispatch CRDs — copies the generated CRD .yaml files to the host-operator and member-operator repositories.

Note: The CRD dispatch step assumes the host-operator and member-operator repositories 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 the host-operator and member-operator repositories 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.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the toolchain.dev.openshift.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=toolchain.dev.openshift.com
Package v1alpha1 contains API Schema definitions for the toolchain.dev.openshift.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=toolchain.dev.openshift.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL