Merge pull request #42886 from deads2k/server-02-fallthrough

Automatic merge from submit-queue

allow fallthrough handling from go-restful routes

This sets up the gorestful routes to fall through to a default handler and reorders the API to be ahead of the other endpoints.  This makes it possible to cleanly support cases of "match, fail, try this other handler" which we'll need for API server composition.

@kubernetes/sig-api-machinery-pr-reviews @ncdc
This commit is contained in:
Kubernetes Submit Queue
2017-03-25 15:56:05 -07:00
committed by GitHub
20 changed files with 123 additions and 89 deletions

View File

@@ -216,7 +216,7 @@ func (c completedConfig) New() (*Master, error) {
}
if c.EnableUISupport {
routes.UIRedirect{}.Install(s.HandlerContainer)
routes.UIRedirect{}.Install(s.FallThroughHandler)
}
if c.EnableLogsSupport {
routes.Logs{}.Install(s.HandlerContainer)