new-api-field
How to add a new field to the CheCluster API
معلومات المصدر
- المستودع
- eclipse-che/che-operator
- آخر نشاط في المصدر
- ٩ يونيو ٢٠٢٦ في ١٤:٠٨
- لغة SKILL.md المكتشفة
- الإنجليزية
- النجوم
- ٧١
- التفرعات
- ١٠٨
خيارات التثبيت
يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.
مراجعة ملفات المصدر
اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.
عرض SKILL.md
SKILL.md
تعليمات المصدر · معاينة للقراءة فقط- 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
عرض على GitHub