来源信息
- 仓库
- eclipse-che/che-operator
- 最近来源活动
- 2026年6月9日 14:08
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 71
- 分支
- 104
安装方式
默认使用会先检查来源的 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 查看