# Functions
CreateWebhookName returns a new name for the given webhook handler with the given suffix.
NewDefaultMutatingWebhook creates a new MutatingWebhook based on the WebhookHandler provided.
NewDefaultValidatingWebhook creates a new ValidatingWebhook based on the WebhookHandler provided.
NewMutatingHandlerFunc returns a new HandlerFunc that will call the function returned by the MutatingAdmissionHandler's AdmitFunc() call.
NewValidatingHandlerFunc returns a new HandlerFunc that will call the functions returned by the ValidatingAdmissionHandler's AdmitFuncs() call.
Path returns the path of the webhook joined with the given basePath.
Ptr is a generic function that returns the pointer of T.
ResponseAllowed returns a minimal AdmissionResponse in which Allowed is true.
ResponseBadRequest returns an AdmissionResponse for BadRequest(err code 400) the message is used as the message in the response.
ResponseFailedEscalation returns an AdmissionResponse a failed escalation check.
SubPath returns the subpath to use for the given gvr.
# Variables
ErrInvalidRequest error returned when the requested operation with the requested fields are invalid.
ErrUnsupportedOperation error returned when a validator is unable to validate the received operation.
SlowTraceDuration duration to use when determining if a webhookHandler is slow.
# Structs
Request is a simple wrapper for an AdmissionRequest that includes the context from the original http.Request.
# Interfaces
Admitter handles webhook admission requests sent to this webhook.
MutatingAdmissionHandler is a handler used for creating a MutatingAdmission Webhook.
ValidatingAdmissionHandler is a handler used for creating a ValidationAdmission Webhook.
WebhookHandler base interface for both ValidatingAdmissionHandler and MutatingAdmissionHandler.