mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
Add support for installing custom object APIs
This commit is contained in:
@@ -248,6 +248,9 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
||||
|
||||
var ctxFn ContextFunc
|
||||
ctxFn = func(req *restful.Request) api.Context {
|
||||
if context == nil {
|
||||
return api.NewContext()
|
||||
}
|
||||
if ctx, ok := context.Get(req.Request); ok {
|
||||
return ctx
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user