# New API Field

> How to add a new field to the CheCluster API

- Skill: `eclipse-che/new-api-field` (Agent Skill)
- Install (CLI): `npx skillmds@latest add eclipse-che/new-api-field`
- Raw SKILL.md: https://api.skillmd.com/api/skills/eclipse-che/new-api-field/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: eclipse-che (https://skillmd.com/u/eclipse-che)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/eclipse-che/new-api-field

---


# Adding a New CheCluster API Field

Reference: existing fields in `api/v2/checluster_types.go`

## Steps

1. Add the field to the appropriate struct in `api/v2/checluster_types.go`
2. Add kubebuilder markers for validation, defaults, and CSV annotations
3. Run `build/scripts/docker-run.sh make update-dev-resources` to regenerate CRDs, DeepCopy methods, and related manifests.
4. Add webhook validation if needed in `api/v2/checluster_webhook.go`
5. Run `make test` to verify

