Skip to main content

new-api-field

How to add a new field to the CheCluster API

Informations de source

Dépôt
eclipse-che/che-operator
Dernière activité de la source
9 juin 2026 à 14:08
Langue détectée de SKILL.md
anglais
Étoiles
71
Forks
104

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
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
Voir sur GitHub