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

fix: supply manifest list digest to pyxis #310

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix: supply manifest list digest to pyxis #310

merged 1 commit into from
Nov 18, 2024

Conversation

ralphbean
Copy link
Member

We're populating containerImage entities incorrectly.

I think this has no real effect, but if you look at one that we generate, the manifest_list_digest and manifest_schema2_digest are always the same, but they're not supposed to be. We currently incorrectly always set them to the value of the arch-specific image manifest, when the point is to provide both values, the multi-arch image index manifest as the manifest_list_digest and the arch-specific image manifest as the manifest_schema2_digest.

@ralphbean ralphbean requested a review from a team as a code owner November 11, 2024 20:40
We're populating containerImage entities incorrectly.

I think this has no real effect, but if you look at one that we
generate, the manifest_list_digest and manifest_schema2_digest are
always the same, but they're not supposed to be. We currently
incorrectly always set them to the value of the arch-specific image
manifest, when the point is to provide both values, the multi-arch image
index manifest as the manifest_list_digest and the arch-specific image
manifest as the manifest_schema2_digest.

Signed-off-by: Ralph Bean <[email protected]>
@mmalina mmalina merged commit f7adbd8 into main Nov 18, 2024
3 checks passed
@mmalina mmalina deleted the multiarch-fix branch November 18, 2024 13:58
@mmalina
Copy link
Contributor

mmalina commented Nov 18, 2024

This actually brings one potential issue - the manifest_list_digest will no longer be unique - meaning that if we were to search for existing images using repositories.manifest_list_digest, we would find all the arch images. But the search for existing images was already broken for multiarch images anyway, AFAICS, fixing here: #319

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.

2 participants