CRD/API Changes
These steps apply whenever the API model in api/v1 changes, for example:
- new field in
AuthRegistrationSpec - new field in
AuthRegistrationStatus - new validation markers (
+kubebuilder:validation:*)
Workflow
- Update API types in
api/v1/authregistration_types.go. - Regenerate generated code and CRD manifests:
make generate-crd-api - Verify changes:
go test ./...
Notes
make generate-crd-apirunsmake generate-deepcopy,make generate-client, andmake manifestsin sequence.make generate-clientis required for structural API changes.- For pure field changes, this is often not technically required, but still recommended to avoid drift in generated code.
- Generated CRD manifests are written to
k8s/helm-crd/templates.
Last updated on 2/25/2026