Closed ryantxu closed 9 months ago
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Jefftree, ryantxu
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Updated https://github.com/kubernetes/kube-openapi/pull/420 -- this time with the config on on OpenAPIV3Config
Currently, the PostProcessSpec hook is only called when creating v2, but does not work for V3. This PR adds an additional hook and calls it while creating the spec.
While building an agregated api-server I am able to apply my special needs to the V2 spec, but not v3. The call is initiated from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/server/routes/openapi.go#L68 so I think it makes most sense to hook in here, but also open to any other suggestions!