Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set annotations on descriptors created by referrers API #1998

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nmiyake
Copy link

@nmiyake nmiyake commented Aug 13, 2024

Implement the behavior described by the OCI 1.1 specification at https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers for annotations for descriptors in the ImageIndex returned by the referrers API.

Addresses #1997

Implement the behavior described by the OCI 1.1 specification at
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers
for annotations for descriptors in the ImageIndex returned by the referrers API.

Addresses google#1997
Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@@ -118,6 +123,7 @@ func TestReferrers(t *testing.T) {
t.Fatal(err)
}
leafImg = mutate.ConfigMediaType(leafImg, types.MediaType("application/testing123"))
leafImg = mutate.Annotations(leafImg, map[string]string{"annotation-key": "annotation-value"}).(v1.Image)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm in this test that we see those values in the descriptor?

@mepi262
Copy link

mepi262 commented Jan 19, 2025

@nmiyake
The reviewer has commented to your pull request.
Would you check it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants