-
Notifications
You must be signed in to change notification settings - Fork 395
copy: try list conversions on list push failures #820
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
copy: try list conversions on list push failures #820
Conversation
vrothberg
left a comment
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
@mtrmac PTAL
00b7353 to
17393e8
Compare
|
@mtrmac PTAL |
c0cd64d to
9821654
Compare
9821654 to
4a936a6
Compare
mtrmac
left a comment
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.
Thanks!
| // Iterate through supported list types, preferred format first. | ||
| c.Printf("Writing manifest list to image destination\n") | ||
| var errs []string | ||
| for _, thisListType := range append([]string{selectedListType}, otherManifestMIMETypeCandidates...) { |
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.
Non-blocking: Can/should this use ManifestTypeRejectedError to avoid unnecessary attempts (and duplicated error messages) for other kinds of failures?
OTOH right now we only have two types, so it’s not at all urgent.
4a936a6 to
5e404aa
Compare
mtrmac
left a comment
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. Thanks!
|
Tests aren't happy: |
Similarly to how we fall back to trying to push single-image manifests in alternate formats when the original/preferred type is rejected by a registry, attempt to do the same for manifest lists. Signed-off-by: Nalin Dahyabhai <[email protected]>
5e404aa to
062db46
Compare
|
LGTM |
Similarly to how we fall back to trying to push single-image manifests in alternate formats when the original/preferred type is rejected by a registry, attempt to do the same for manifest lists.