-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[release/1.2 backport] Compute manifest metadata when not provided. #3591
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.2 backport] Compute manifest metadata when not provided. #3591
Conversation
This was requested by @artch to help compatibility with the GitHub Package Registry #3245 (comment) /cc @Phanatic |
Looks like additional changes are needed to make this work;
|
Need to backport #2751 |
This reverts commit 1af8e6e. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Charles Kenney <[email protected]> (cherry picked from commit 068880f) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Fixes containerd#2870 Signed-off-by: Eric Lin <[email protected]> (cherry picked from commit 2db0c6c) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Currently the user agent is only being used on the initial resolve request, then switching to the default user agent. This ensures the correct user agent is always used. There is a larger fix in progress which does this is a cleaner way, but the scope of this change is fixing the user agent issue. Signed-off-by: Derek McGowan <[email protected]> (cherry picked from commit bb00872) Signed-off-by: Sebastiaan van Stijn <[email protected]>
This closes containerd#3238 Signed-off-by: msg555 <[email protected]> (cherry picked from commit ee902af) Signed-off-by: Sebastiaan van Stijn <[email protected]>
0a49e64
to
0d6d883
Compare
OK; I had a look what is needed to get a clean backport, but that would include #3335, which (I think) is a feature.
I'll leave it to the maintainers to decide if this is ok, or if I need to spend some time to adapt the backport to work |
Codecov Report
@@ Coverage Diff @@
## release/1.2 #3591 +/- ##
===============================================
- Coverage 44.09% 44.03% -0.07%
===============================================
Files 100 100
Lines 10790 10837 +47
===============================================
+ Hits 4758 4772 +14
- Misses 5293 5325 +32
- Partials 739 740 +1
Continue to review full report at Codecov.
|
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
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
backport of #3245 for the 1.2 branch
Adds a fallback to manually compute the manifest digest when it is not presented as the Docker-Content-Digest header by the registry server. This is to address #3238.
closes #3238
addresses parts of #3291