Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[docs] Convention Server Open API spec #74
[docs] Convention Server Open API spec #74
Changes from 4 commits
0101202
ec8da7c
381a307
58d1dbb
453616b
1815ab6
026b44f
0d00e34
79c721f
a81c519
d06b20d
b444ae0
c3af6d0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I don't think the client distinguishes between different types of http errors. Either the webhook call succeeds or it doesn't. Better alignment with Kubernetes by following the model for AdmissionReview response would be good, but is a separate issue.
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.
The config object is quite large. Most of it is structured, and parts are unstructured.
I've been wondering if we should make the config in the webhook contract schema-less (what you have here). We promise to expose the metadata we can find, it's up to the registry to define that metadata in a structured way for the image. In that sense, we shouldn't define the config as a ggcr type, even if we use ggcr to lookup that metadata.
If we go this route, clients that do care about the OCI metadata will need to convert the raw blob into an appropriate type. Which isn't too different that how clients need to parse the SBOM
What do you think?
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.
does this type of ref work? I know JSON Ref can use URLs, this doesn't look like a URL and Kubernetes.io would need to publish the schema for each type in open api.
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.
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.
The intention was to reference the
podTemplateSpec
definition from a valid kubernetes openapi spec similar to