new-api-field
How to add a new field to the CheCluster API
Informações da origem
- Repositório
- eclipse-che/che-operator
- Última atividade na origem
- 9 de junho de 2026 às 14:08
- Idioma detectado do SKILL.md
- inglês
- Estrelas
- 71
- Forks
- 104
Opções de instalação
Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.
Revise os arquivos de origem
Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.
Exibindo SKILL.md
SKILL.md
Instruções da origem · Visualização somente leitura- name
- new-api-field
- description
- How to add a new field to the CheCluster API
# 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
Ver no GitHub