new-api-field
How to add a new field to the CheCluster API
Datos de origen
- Repositorio
- eclipse-che/che-operator
- Última actividad en el origen
- 9 de junio de 2026 a las 14:08
- Idioma detectado de SKILL.md
- inglés
- Estrellas
- 71
- Forks
- 104
Opciones de instalación
De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.
Revisa los archivos de origen
Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.
Mostrando SKILL.md
SKILL.md
Instrucciones de origen · Vista previa de solo lectura- 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 en GitHub