Store RequestInfo in Context

... in order to replace the manual RequestInfoResolver dependency injection
through out the code.
This commit is contained in:
Dr. Stefan Schimanski
2016-09-26 17:18:19 +02:00
parent 53631cf4f8
commit 10cbaf7ce0
20 changed files with 310 additions and 123 deletions

View File

@@ -785,9 +785,8 @@ func (m *Master) thirdpartyapi(group, kind, version, pluralResource string) *api
apiRoot := extensionsrest.MakeThirdPartyPath("")
return &apiserver.APIGroupVersion{
Root: apiRoot,
GroupVersion: externalVersion,
RequestInfoResolver: m.NewRequestInfoResolver(),
Root: apiRoot,
GroupVersion: externalVersion,
Creater: thirdpartyresourcedata.NewObjectCreator(group, version, api.Scheme),
Convertor: api.Scheme,