-
Notifications
You must be signed in to change notification settings - Fork 56
Disable local cache lookup, favor parallel download #139
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
Conversation
Container image referencess are no longer resolved using the local daemon. This caused a bug where references pointing to indices were resolveds as single arch images. Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Aparently, there is no way to access the local arch blobs behind a multiarch index using GGCR when they have been cached by pulling the index ref. Therefore, this commit completely removes the local daemon checks from the download code. Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
This commit parallelizes arch image downloads to download them 4 at a time. It also abstracts the image reference data into a type of its own to simplify the code and interfaces. Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two nits, otherwise LGTM 👍
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: puerco, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR disables the local daemon lookup of container images to fix #134.
When passing a reference to a multiarch image to the local docker daemon, the reference gets transalated to the local arch image, generating an SBOM only for the image corresponding to the local architecture.
This PR reverts the local daemon change as apparently there is no way to get the docker daemon to return the correct reference (to the image index ) to GGCR.
In order to improve image download times the blob downloads to local tarballs are now parallelized which should at least provide some speed gains.
Which issue(s) this PR fixes:
Fixes #134
Special notes for your reviewer:
/cc @kubernetes-sigs/release-engineering
Does this PR introduce a user-facing change?