MCPcopy
hub / github.com/kubernetes-sigs/controller-runtime / Webhook

Struct Webhook

pkg/webhook/authentication/webhook.go:80–92  ·  view source on GitHub ↗

Webhook represents each individual webhook.

Source from the content-addressed store, hash-verified

78
79// Webhook represents each individual webhook.
80type Webhook struct {
81 // Handler actually processes an authentication request returning whether it was authenticated or unauthenticated,
82 // and potentially patches to apply to the handler.
83 Handler Handler
84
85 // WithContextFunc will allow you to take the http.Request.Context() and
86 // add any additional information such as passing the request path or
87 // headers thus allowing you to read them from within the handler
88 WithContextFunc func(context.Context, *http.Request) context.Context
89
90 setupLogOnce sync.Once
91 log logr.Logger
92}
93
94// Handle processes TokenReview.
95func (wh *Webhook) Handle(ctx context.Context, req Request) Response {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected