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
Decouple REST Framework #250
Comments
Takes ownership of the route interfaces and removes exposing the `go-restful` dependency. Adds an adapter for the currently used version of `go-restful`. Closes kubernetes#250 (kubernetes#250)
I've got a work-in-progress that accomplishes this and passes the current tests here: https://github.com/kubernetes/kube-openapi/compare/master...austince:feat/decouple-restful?expand=1 If the direction is good, just needs docs, tests, and a release strategy. 🙂 |
Takes ownership of the route interfaces and removes exposing the `go-restful` dependency. Adds an adapter for the currently used version of `go-restful`. Closes kubernetes#250 (kubernetes#250)
Takes ownership of the route interfaces and removes exposing the `go-restful` dependency. Adds an adapter for the currently used version of `go-restful`. Closes kubernetes#250 (kubernetes#250)
Takes ownership of the route interfaces and removes exposing the `go-restful` dependency. Adds an adapter for the currently used version of `go-restful`. Closes kubernetes#250 (kubernetes#250)
/sig api-machinery |
PR is not in ready state, but a rough changelog for k/k is here: https://github.com/kubernetes/kubernetes/compare/master...austince:feat/decouple-restful-openapi?expand=1 Main change to use the adapter: https://github.com/kubernetes/kubernetes/compare/master...austince:feat/decouple-restful-openapi?expand=1#diff-0c219ab2a174bb27d5e294d3e1179bd793927ec2f243ab364e13d37dc4b676f1 |
Takes ownership of the route interfaces and removes exposing the `go-restful` dependency. Adds an adapter for the currently used version of `go-restful`. Closes kubernetes#250 (kubernetes#250)
Takes ownership of the route interfaces and removes exposing the `go-restful` dependency. Adds an adapter for the currently used version of `go-restful`. Closes kubernetes#250 (kubernetes#250)
/assign @austince |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Currently, the
builder
package is tightly coupled with a 2017 version ofgo-restful
. This dependency is exposed in three places:BuildOpenAPISpec
, which takes a slice of*restful.WebService
sGetOperationIDAndTags
function, which takes a*restful.Route
BuildAndRegisterOpenAPIVersionedService
It would be nice to be able to use this builder with newer versions of
go-restful
, but also with other frameworks.I propose taking ownership of the route interfaces and adding an adapter for the current version of
go-restful
to support the transition. We could add more adapters in this repo, or 3rd parties could implement them elsewhere.This would result in three breaking changes that I can see, with the two places the current dependency is exposed. Would this require a formal KEP?
The text was updated successfully, but these errors were encountered: