Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Update OCI Discover Extension Response #95

Merged

Conversation

akashsinghal
Copy link
Contributor

  • Updates the oci discover extension sample response to include the endpoints field and updated url

@akashsinghal akashsinghal requested a review from a team as a code owner April 20, 2022 16:24
@akashsinghal akashsinghal force-pushed the akashsinghal/updateRC1Discover branch from 6e35a25 to 7f00a3f Compare April 20, 2022 16:27
@@ -34,8 +34,11 @@ Content-Type: application/json
"extensions": [
{
"name": "cncf.oras.referrers",
"url": "https://github.com/opencontainers/distribution-spec/blob/main/extensions/_oci.md",
Copy link
Contributor

@sajayantony sajayantony Apr 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value for url description should be this this repo. You can just use the repo root.
Actually it’s https://oras.land

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I'll switch it to https://oras.land

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URL link to the documentation defining this extension and its endpoints.

Shouldn't this be the url of the spec? https://github.com/oras-project/artifacts-spec/blob/main/manifest-referrers-api.md

Copy link
Contributor

@sajayantony sajayantony Apr 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value is currently only a place holder and the definition in the extension spec is

url string, REQUIRED

URL link to the documentation defining this extension and its endpoints.

I think cloud providers can point to their own docs location.

Signed-off-by: Akash Singhal <[email protected]>
Copy link
Contributor

@SteveLasker SteveLasker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sajayantony
Copy link
Contributor

Recommend fixing this and backporting to RC1 branch since this makes sure that clients can use the correct property to get the referrers URL.

@sajayantony sajayantony added this to the 1.0.0-RC1 milestone Apr 20, 2022
Copy link
Contributor

@SteveLasker SteveLasker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SteveLasker SteveLasker merged commit bb35d9b into oras-project:main Apr 25, 2022
akashsinghal added a commit to akashsinghal/artifacts-spec that referenced this pull request Apr 27, 2022
* update oci discover extension response to match distribution spec
* fix documentation url

Signed-off-by: Akash Singhal <[email protected]>
SteveLasker pushed a commit that referenced this pull request Apr 27, 2022
* update oci discover extension response to match distribution spec
* fix documentation url

Signed-off-by: Akash Singhal <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants