-
Notifications
You must be signed in to change notification settings - Fork 181
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
feat: add platform option to push command #1500
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1500 +/- ##
==========================================
- Coverage 85.97% 85.95% -0.02%
==========================================
Files 118 118
Lines 4228 4251 +23
==========================================
+ Hits 3635 3654 +19
- Misses 354 356 +2
- Partials 239 241 +2 ☔ View full report in Codecov by Sentry. |
641cbba
to
7e915b1
Compare
3038b7b
to
fafd301
Compare
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 with nit, but I am not a maintainer.
fafd301
to
a8a6a36
Compare
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
8d4062e
to
35fe5b7
Compare
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 with minor suggestion
956c7e3
to
1334a8d
Compare
Sorry merging 55cf426 is not intended, I was playing with the PR locally and the upstream is accidentally set to this PR. |
55cf426
to
1334a8d
Compare
reverted |
0788180
to
657c32b
Compare
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.
In fact, I have a more fundamental question: How do I specify both artifactType
and config.mediaType
? It seems not possible for image-spec 1.1 in the current PR.
We need the ability to set config.mediaType
to application/vnd.oci.image.config.v1+json
when --artifact-platform
is set in order to support OCI volumes. /cc @FeynmanZhou
This is out of the scope for this PR and I don't think that was possible before this PR. |
Can you mark the flag |
Signed-off-by: Terry Howe <[email protected]>
657c32b
to
0a9eb54
Compare
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
Through |
In that case |
This workaround should work. |
It just came to me that if This default media type switch will only happen when |
I'm not 100% following here, maybe create an issue if you think there is something. If |
@TerryHowe What I am thinking is to use Actually, it requires oras to extra work on baking the config blob to meet below spec: https://github.com/opencontainers/image-spec/blob/da92727e9c8761ec087890466b8756b755aefd37/manifest.md#L68-73
This work goes below the scope of oras so what I am thinking is not doable for now. |
Just realized that the config media type has to be |
What this PR does / why we need it:
Add the platform option to the push command for example:
Create the manifest for example:
The results
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Closes #1066
Partial #1053
Please check the following list: