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

Map XPKG annotations to OCI annotations

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
cli

調査の方向性

まず issue #11 と、XPKG オブジェクトアノテーションおよび OCI の事前定義アノテーションの仕様を確認し、次に crossplane project build が現在 OCI アノテーションをどのように処理しているかを追跡します。オプトインのマッピングを定義し、両方のソースが存在する場合に手動で指定された OCI アノテーションが優先されることを検証します。

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

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

crossplane/cli のほかの issue

crossplane/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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