Allow configurable apis/ folder structure to avoid path collisions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、CLI に既存する明示的な output-path オプションを追跡し、issue で言及されている競合しない schemas/ レイアウトと比較します。crossplane-project.yaml で apis/ テンプレートをどのように設定するか、またデフォルトをどうするかを定義します。同じ kind で API グループが異なるリソースが、異なる決定論的なディレクトリに生成されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What problem are you facing?
Generating APIs from an XRD or simple schema can conflict when two resources share the same kind but belong to different API groups. For example:
kubernetesclusters.onprem.example.com
kubernetesclusters.cloud.example.com
Both of these generate today into the same directory, apis/kubernetesclusters/, causing a conflict.
There is currently an option to specify the output path explicitly, but that doesn't scale for larger repositories or automated build tooling, where paths need to be derived consistently rather than set by hand.
How could Crossplane help solve your problem?
Allow conflict-free generation of XRD definitions from an XR or simple schema. Ideas:
- Add an option in
crossplane-project.yamlto configure how theapis/folder is populated, using a template string such as{{ groupElement[1] }}/{{ kindPlural }}. For example, this would resolve to:
apis/
onprem/
kubernetesclusters/
definition.yaml
cloud/
kubernetesclusters/
definition.yaml
- Default to a non-conflicting structure, similar to what
schemas/already uses.
- 主要言語
- Go
- スター
- 19
- フォーク
- 31
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 52
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crossplane/cli のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crossplane/cli#282 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
crossplane/cli#386 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
crossplane/cli#384 ·
メンテナーはふだん 1 日以内に返信
-
Constrain followed source symlinks to the project root during tar staging対応中かも @jonasz-lasut が 7 日前に担当しました。 オープン
crossplane/cli#379 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
crossplane/cli#370 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
enhancement low priority
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
eugenioenko/ttt#674 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
GoogleCloudPlatform/k8s-config-connector#13462 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
vavallee/bindery#2793 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信