-
Notifications
You must be signed in to change notification settings - Fork 191
feat: replace Crane usage for Image pull and Push with ORAS #3559
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
✅ Deploy Preview for zarf-docs canceled.
|
let's gooooooo! so excited for this lol |
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
…3550) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
git push Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
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.
LGTM, nice work! License matches and the included attribution should be sufficient.
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
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.
LGTM, discussed final review synced up
…#3559) Signed-off-by: Austin Abro <AustinAbro321@gmail.com> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: razzle <razzle@defenseunicorns.com> Signed-off-by: NevinAragam <nevin.aragam@gmail.com>
Description
This replaces the Crane library uses for image pulls and pushes with ORAS. This does not change
zarf tools crane
operations.Proposal - ZEP-0019: Refactor Image operations #20
This PR also enables the Zarf cache during E2E tests which helps verify that #3194 is truly getting solved.
Crane has special behavior for localhost. If localhost is used for image pulls or pushes it will try to connect over https, and fallback to http if that fails. This behavior was brought into Zarf since ORAS does not have it.
Release notes:
Image pulls and pushes now respect the
--oci-concurrency
flag to determine the number of layers to pull/push in parallel. In previous versions of Zarf every image layer was pulled and pushed concurrently and the--oci-concurrency
flag only applied tozarf package publish
andzarf package pull
. Additionally, the default value of--oci-concurrency
changed from three to six.Zarf will no longer pull images in parallel, you may see a slowdown if you have a fast internet connection. We changed this because concurrent image pulls were causing reliability issues for some users. Generally image pulls are bottlenecked by the network so too many concurrent pulls can degrade performance.
The
--plain-http
flag is now respected when connected to registries for image pulls and pushes.Docker v1 images are no longer supported. Dockerhub completely stopped serving v1 images in June 2019, it's unlikely you will be effected by this, but if you are using a particularly old registry you may want to double check.
The format of the cache is changing. You are encouraged to run
zarf tools clear-cache
as existing image layers will not do anything.Related Issue
Fixes #3434
Fixes #3194
Relates to #3113
Relates to #2104
Checklist before merging