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

[release/1.7] Update image type checks to avoid unnecessary logs for attestations #11538

Merged
merged 2 commits into from
Mar 14, 2025

Conversation

dmcgowan
Copy link
Member

Manual cherry-pick of #11327

vvoland added 2 commits March 13, 2025 17:56
Before this patch, calling `image.Children` on an image built with
BuildKit would produce unnecessary `encountered unknown type
application/vnd.in-toto+json; children may not be fetched` debug logs,
because the media type is neither a known layer or config type.

Make the `image.Children` aware of the attestation layers and don't
attempt to traverse them.

Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit e751b6b)
Signed-off-by: Derek McGowan <[email protected]>
Don't produce `reference for unknown type: application/vnd.in-toto+json`
warning logs when pushing/fetching an image containing the attestation
manifests.

Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit 3cdfc10)
Signed-off-by: Derek McGowan <[email protected]>
@mxpv mxpv merged commit 574a304 into containerd:release/1.7 Mar 14, 2025
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

5 participants