Adding a New CheCluster API Field
Reference: existing fields in api/v2/checluster_types.go
Steps
- Add the field to the appropriate struct in
api/v2/checluster_types.go - Add kubebuilder markers for validation, defaults, and CSV annotations
- Run
build/scripts/docker-run.sh make update-dev-resourcesto regenerate CRDs, DeepCopy methods, and related manifests. - Add webhook validation if needed in
api/v2/checluster_webhook.go - Run
make testto verify