Skip to main content

new-api-field

How to add a new field to the CheCluster API

Quellinformationen

Repository
eclipse-che/che-operator
Letzte Quellaktivität
9. Juni 2026 um 14:08
Erkannte Sprache von SKILL.md
Englisch
Sterne
71
Forks
104

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
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
Auf GitHub ansehen