Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFixup bugs in the upstream OpenAPI spec #95052
Comments
/sig api-machinery |
/good-first-issue |
@dims: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
/cc @roycaihw |
Hi! I have not yet found out how the OpenAPI generator code (vendor/k8s.io/kube-openapi/pkg/generators/ ?) Pointers in the right direction are highly appreciated. |
Trying to break down https://github.com/Arnavion/k8s-openapi/blob/master/k8s-openapi-codegen/src/fixups/upstream_bugs.rs connect_options_gvk:Path operation annotated with a "x-kubernetes-group-version-kind" that references a type that doesn't exist in the schema. E.g.
kube-apiserver installs
kube-openapi won't include the schema in the definitions if it's not used (not consumed/produced by any operation, nor referred by other used definition). Possible ways to fix:
|
Hi! Maybe this helps in deciding how to properly address this issue? |
Hi! |
Reading getRequestOptions, these proxy options are query parameters only (not body parameters), so they are not consumed. It's unlikely for them to be produced as well.
@Git-Jiro Thanks. I didn't notice the linked PRs. Reading #66807 (comment), I think the change was necessary for admission webhooks, but unintentionally changed the spec. The webhook controller needs the proxy option kinds, while the spec should still use the parent kinds. This issue contains several bugs. Please feel free to open a separate issue to summarize&track this specific bug. |
The folks maintaining the Rust Kubernetes API client have noted some discrepencies in our spec. Details are here:
So the effort here is to go through the information above and break up the changes into sizable / related chunks and propose PRs to fix them.