-
Notifications
You must be signed in to change notification settings - Fork 664
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
Embed platform fields in Image spec #809
Conversation
(not a maintainer) I'm +1 on this, but I think it's probably worth at least mentioning pros/cons of including all the |
Major con I can see with that is builders will need to set both the old fields and the new Also requires allocating another object, but 🤷 |
@cyphar any comments here? ping @opencontainers/image-spec-maintainers It seems this would warrant a bump in a minor or micro release, nothing breaks here (optional field) |
I think a |
1f03251
to
8f070f5
Compare
Updated. |
8f070f5
to
a2916de
Compare
Ping |
ping @opencontainers/image-spec-maintainers |
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 for working on this, @cpuguy83!
I would love to help things push forward if needed. @opencontainers/image-spec-maintainers, are there any open issues that prevent the changes from getting in?
I have an immediate need to know the variant of an image. Once an image was pulled, we lose that information which is currently causing me headaches.
You could poke some folks in the weekly meeting (today) if you want to get some activity. |
Thanks. I wanted to join for a long time but the time is tough (11PM in my time zone). Maybe, I'll make it once to help push this issue forward :) |
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.
This lines up with what's already being done (apart from my one comment), and it matches with the os and variant fields in the image-index descriptors.
This commit adds the CPU variant to the image config type. It also refactors the image index specification to isolate the platform variant specifications, allowing a reference from the config spec. The go specs are updated to include the new field in the v1.Image struct, and tests are updated to include the new field. Signed-off-by: Chris Price <[email protected]>
|
@cpuguy83 hrm. Is that a go.mod issue? |
Looks like a network fluke in CI that probably just needs a restart to me 😅
|
/me kicked the jobs |
This makes sure that an index can be generated from an image spec. `OSVersion` in particular is fairly important for Windows since Windows can only run containers for the OS version it was built for, and currently the only way to reliably get this is from the index. Signed-off-by: Brian Goff <[email protected]>
All green now. |
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
@cyphar Does this LGTY? I made the adjustments you'd requested before. Merging is currently blocked due to prior review. Thanks! |
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.
😸
Carries #777 + adds other platform fields
Closes #777