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 |
vrothberg
left a comment
There was a problem hiding this comment.
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 :) |
vbatts
left a comment
There was a problem hiding this comment.
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 <chris.price@docker.com>
|
|
@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 <cpuguy83@gmail.com>
|
All green now. |
|
@cyphar Does this LGTY? I made the adjustments you'd requested before. Merging is currently blocked due to prior review. Thanks! |
Carries #777 + adds other platform fields
Closes #777