Skip to content
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

merge "ManifestDescriptor" and "Descriptor" types #618

Closed
stevvooe opened this issue Mar 17, 2017 · 12 comments
Closed

merge "ManifestDescriptor" and "Descriptor" types #618

stevvooe opened this issue Mar 17, 2017 · 12 comments
Assignees
Milestone

Comments

@stevvooe
Copy link
Contributor

stevvooe commented Mar 17, 2017

Currently, we have ManifestDescriptor and Descriptor types. The only difference is the inclusion of the platform field. For making generic processors that filter based on platform type, this creates a number of complexities (see https://github.com/docker/containerd/pull/638 for an example of this pattern).

We'll simply need to merge these types in the specification and struct definitions.

@stevvooe stevvooe changed the title merge " merge "ManifestDescriptor" and "Descriptor" types Mar 17, 2017
@stevvooe stevvooe self-assigned this Mar 17, 2017
@stevvooe stevvooe added this to the v1.0.0-rc6 milestone Mar 17, 2017
@qianzhangxa
Copy link
Contributor

@stevvooe @jbouzane Based on the description of this ticket:

We'll simply need to merge these types in the specification and struct definitions.

We need to update both spec and struct definition, however I think #620 only updates the struct definition, we need another PR to update spec (descriptor.md and image-index.md)?

@jonboulle
Copy link
Contributor

jonboulle commented Apr 5, 2017

@qianzhangxa oops, for some reason I thought that had already been done, sorry. Feel like putting up a PR? <edit: never mind, just saw #638>

@stevvooe
Copy link
Contributor Author

stevvooe commented Apr 5, 2017

We need to update both spec and struct definition, however I think #620 only updates the struct definition, we need another PR to update spec (descriptor.md and image-index.md)?

Actually, this was a conscious decision not to. The alternative fields can be ignored outside the context of processing a manifest index. We only merge the Go datatype to make usage easier in practice.

@stevvooe
Copy link
Contributor Author

@jonboulle Can we close this or did you want me to add some clarification on the difference between the spec and datatype?

@stevvooe
Copy link
Contributor Author

@jonboulle Ping.

@jonboulle
Copy link
Contributor

I'd still like to see the tweak discussed in #638 - @qianzhangxa @q384566678 either of you feel like taking this on?

@qianzhangxa
Copy link
Contributor

Sure. I have submitted #649 for it.

@zhouhao3
Copy link

I think it should be explained for the difference. #649 looks good to me.

@zhouhao3
Copy link

I think the json file needs to be updated to coincide with the specs-go / v1 file, just as I do here.

@vbatts
Copy link
Member

vbatts commented May 3, 2017

@stevvooe does #649 fix this issue?

@stevvooe
Copy link
Contributor Author

stevvooe commented May 3, 2017

@stevvooe does #649 fix this issue?

This was already fixed by #620. This was never meant to have bearing on the specification.

@vbatts
Copy link
Member

vbatts commented May 4, 2017

right on

@vbatts vbatts closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants