Map XPKG annotations to OCI annotations
まだ誰も着手していません。
評価
調査の方向性
まず issue #11 と、XPKG オブジェクトアノテーションおよび OCI の事前定義アノテーションの仕様を確認し、次に crossplane project build が現在 OCI アノテーションをどのように処理しているかを追跡します。オプトインのマッピングを定義し、両方のソースが存在する場合に手動で指定された OCI アノテーションが優先されることを検証します。
索引モデルが issue の本文から書いたものです。
説明
What problem are you facing?
The XPKG spec has the concept of object annotations, which allow specifying package metadata. The OCI spec similarly has certain pre-defined annotation keys.
Right now there is no way to set OCI annotations on artifacts produced by crossplane project build. This is addressed by #11, but it requires that you specify both XPKG annotations and OCI annotations.
How could Crossplane help solve your problem?
Having to specify the same annotations twice for XPKG and OCI is annoying, especially if it's done in two different ways: one via configuration file (crossplane-project.yaml) and the other via CLI flag.
There is quite a big overlap between XPKG and OCI annotations. I think it could make sense to map from the former to the later, possibly as an opt-in (for example, --map-xpkg-to-oci-annotations). When this is set, it would automatically propagate meta.crossplane.io/source to org.opencontainers.image.source, etc. The details of this mapping needs to be figured out.
This could be done in addition to manually specifying OCI annotations (i.e. #11). If both are specified, I would expect them to be merged and for the manually specified OCI annotations to take precedence.
Related issues:
- #11
- crossplane/crossplane#7282
Awesome work on the CLI and DevEx tooling by the way!
- 主要言語
- Go
- スター
- 19
- フォーク
- 31
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 53
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crossplane/cli のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crossplane/cli#282 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
crossplane/cli#384 ·
-
crossplane/cli#379 · 担当者 1 名 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
crossplane/cli#370 · リアクション 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
crossplane/cli#369 ·
似ている issue
-
bug github_actions
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#1393 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JakeChampion/lang#10213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
oasisprotocol/oasis-sdk#2523 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100