Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Allow configurable apis/ folder structure to avoid path collisions

オープン
#214 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go
領域
cli

調査の方向性

まず、CLI に既存する明示的な output-path オプションを追跡し、issue で言及されている競合しない schemas/ レイアウトと比較します。crossplane-project.yaml で apis/ テンプレートをどのように設定するか、またデフォルトをどうするかを定義します。同じ kind で API グループが異なるリソースが、異なる決定論的なディレクトリに生成されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement
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:

  1. Add an option in crossplane-project.yaml to configure how the apis/ 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
  1. Default to a non-conflicting structure, similar to what schemas/ already uses.
主要言語
Go
スター
19
フォーク
31
平均マージ
2日 12時間
マージ済み PR(30日)
52

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

crossplane/cli のほかの issue

crossplane/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。