- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for withFakeUser (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler_test.go
t.Fatalf("Error creating peer proxy handler: %v", err) } peerProxyHandler.finishedSync.Store(informerFinishedSync) handler = peerProxyHandler.WrapHandler(handler) // Add user info handler = withFakeUser(handler) // Add requestInfo handler requestInfoFactory := &apirequest.RequestInfoFactory{APIPrefixes: sets.NewString("apis", "api"), GrouplessAPIPrefixes: sets.NewString("api")}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight_test.go
}), nonMutating, mutating, longRunningRequestCheck, ) handler = withFakeUser(handler) handler = apifilters.WithRequestInfo(handler, requestInfoFactory) return httptest.NewServer(handler) } func withFakeUser(handler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if len(r.Header["Groups"]) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 10.2K bytes - Viewed (0)