Skip to main content

new-api-field

How to add a new field to the CheCluster API

ソース情報

リポジトリ
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で見る