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

Support stripping dropped instances from manifests when making sparse multi-platform copies #1661

Closed
tumberino opened this issue Sep 22, 2022 · 3 comments · May be fixed by #1707
Closed

Support stripping dropped instances from manifests when making sparse multi-platform copies #1661

tumberino opened this issue Sep 22, 2022 · 3 comments · May be fixed by #1707
Labels
kind/feature A request for, or a PR adding, new functionality

Comments

@tumberino
Copy link

Hi,

Not sure if this is a bug or the intended behaviour so asking for clarification. When using the CopySpecifcImages it will copy the images listed in the Instances field but then try to put the entire manifest list into the destination which will only have the updated details for those copied as part of the Instances.

This will result in seeing manifest blob unknown: blob unknown to registry error, because there will be blobs referenced in the manifest that have not been included in the copy because they are not in the Instances list.

The language in the documentation for CopySpecifcImages does have the line "along with the list itself". Is this useful behaviour?

The usecase for this is to be able to copy only specific architectures from a multi-arch manifest rather than copying across all which can be costly storage. 1-2 GB wasted from unrequired archs.

@mtrmac
Copy link
Collaborator

mtrmac commented Sep 22, 2022

Thanks for reaching out.

This is the intended, or at least as-of-this-point-frozen, behavior; e.g. #1483 (review) points at a specific constraint.

The alternate, of copying only a subset, and modifying the manifest list (at the price of breaking digest references to the manifest list), is a reasonable feature to perhaps add in the future. (And nowadays we have some ways to make the compatibility constraints mentioned in #1483 less constraining, e.g. c/image/internal/private.)

@mtrmac
Copy link
Collaborator

mtrmac commented Dec 9, 2022

#1707 will allow modifying the manifest list.

@mtrmac mtrmac linked a pull request Dec 9, 2022 that will close this issue
@mtrmac mtrmac added the kind/feature A request for, or a PR adding, new functionality label Jul 12, 2023
@mtrmac mtrmac changed the title [Clarification] copy.CopySpecifcImages and Instances list Support stripping dropped instances from manifests when making sparse multi-platform copies Jun 28, 2024
@mtrmac
Copy link
Collaborator

mtrmac commented Jun 28, 2024

The RFE to copy only some architectures, and to update manifests, is also tracked in #1687; please follow the progress there.

@mtrmac mtrmac closed this as completed Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for, or a PR adding, new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants