• Kubernetes Submit Queue's avatar
    Merge pull request #33490 from sttts/sttts-requestinfo-via-context · 9b1e2069
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Store RequestInfo in Context instead of RequestInfoResolver dependency injection
    
    **Depends on https://github.com/kubernetes/kubernetes/pull/33478**
    
    The `RequestInfoResolver` is used in the proxy handler and in the authorization code. It is passed through half of the apiserver code base to be available at those locations. This PR uses the context instead, which is our natural dependency injection mechanism in the handlers.
    
    `RequestInfo` and all tooling around is moved to `pkg/apiserver/request` temporarily to avoid dependency cycles. This is necessary as long as `pkg/apiserver` implements the proxy and other handlers. Those might move to `pkg/apiserver/handlers` probably later.
    9b1e2069
Name
Last commit
Last update
..
authorizer Loading commit data...
filters Loading commit data...
openapi Loading commit data...
options Loading commit data...
routes Loading commit data...
validation Loading commit data...
OWNERS Loading commit data...
config.go Loading commit data...
default_storage_factory_builder.go Loading commit data...
default_storage_factory_builder_test.go Loading commit data...
doc.go Loading commit data...
genericapiserver.go Loading commit data...
genericapiserver_test.go Loading commit data...
hooks.go Loading commit data...
resource_config.go Loading commit data...
resource_config_test.go Loading commit data...
resource_encoding_config.go Loading commit data...
reststorage_interfaces.go Loading commit data...
server_run_options_test.go Loading commit data...
storage_factory.go Loading commit data...
storage_factory_test.go Loading commit data...
tunneler.go Loading commit data...
tunneler_test.go Loading commit data...