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

image-layout: remove support for nested index #718

Closed

Conversation

AkihiroSuda
Copy link
Member

Signed-off-by: Akihiro Suda [email protected]

discussed in #716

@vbatts
Copy link
Member

vbatts commented Aug 2, 2017 via email

@stevvooe
Copy link
Contributor

stevvooe commented Aug 2, 2017

This is a completely valid configuration. As @vbatts said, imagine packing an image with a multi-platform image.

Remember that refs on indexes are only valid when present in index.json. Any referenced indexes would only provide extra platform annotations or non-standard extensions.

@AkihiroSuda If there is a use case I'm misunderstanding here, let me know, but I'm going to close this PR.

@stevvooe stevvooe closed this Aug 2, 2017
@jonboulle
Copy link
Contributor

@stevvooe but how does that use case involve an index referring to another index? e.g. in the example here it refers to two manifests directly

Remember that refs on indexes are only valid when present in index.json.

not sure what this means, can you link me to some part of the spec that illustrates this?

@wking
Copy link
Contributor

wking commented Aug 2, 2017 via email

@stevvooe
Copy link
Contributor

stevvooe commented Aug 2, 2017

@stevvooe but how does that use case involve an index referring to another index?

I'm not sure I understand the distinction. What does problem does this PR address? Could you elaborate?

not sure what this means, can you link me to some part of the spec that illustrates this?

From https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys:

SHOULD only be considered valid when on descriptors on index.json within image layout.

@jonboulle
Copy link
Contributor

I'm not sure I understand the distinction. What does problem does this PR address? Could you elaborate?

The example you gave is "packing an image with a multi-platform image.". That example is illustrated in (the example I linked to](https://github.com/opencontainers/image-spec/blame/710038243d857231f17df1c3f4c10850154bd1f7/image-index.md#L93) which is an image index pointing to two image manifests (i.e. both of mediaType application/vnd.oci.image.manifest.v1+json).

In contrast, the image index example in the image layout document points to one image manifest and one image index (i.e. one of mediaType application/vnd.oci.image.manifest.v1+json and one of mediaType application/vnd.oci.image.index.v1+json).

It is unclear to me and apparently others what the use case of the latter is. Furthermore, it is "soft contradicted" by the guidance in the image index documentation itself which suggests that implementations should be prepared to have indices point to image manifests - https://github.com/opencontainers/image-spec/blame/710038243d857231f17df1c3f4c10850154bd1f7/image-index.md#L35

I don't think refs are relevant to this specific discussion.

@wking
Copy link
Contributor

wking commented Aug 4, 2017 via email

@jonboulle
Copy link
Contributor

@wking thanks for illuminating. I suppose this is just a rehash once again of the debates in #581 and #588 which I don't have the energy to rekindle.

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

Successfully merging this pull request may close these issues.

5 participants