- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for reviewHook (0.19 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics_test.go
defer cancel() service := new(mockV1Service) service.statusCode = scenario.authzFakeServiceStatusCode if service.statusCode == 0 { service.statusCode = 200 } service.reviewHook = func(*authorizationv1.SubjectAccessReview) { if scenario.canceledRequest { cancel() } } service.allow = !scenario.authFakeServiceDeny
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:01:15 UTC 2024 - 6.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go
allow bool statusCode int called int // reviewHook is called just before returning from the Review() method reviewHook func(*authorizationv1.SubjectAccessReview) } func (m *mockV1Service) Review(r *authorizationv1.SubjectAccessReview) { m.called++ r.Status.Allowed = m.allow if m.reviewHook != nil { m.reviewHook(r) } } func (m *mockV1Service) Allow() { m.allow = true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.2K bytes - Viewed (0)