Documentation ¶
Overview ¶
Package webhook implements utility routines related to Kubernetes' admission webhooks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ContentTypeJSON is the supported content type for HTTP requests ContentTypeJSON = "application/json" // HTTPHeaderContentType is the Content-Type HTTP header key HTTPHeaderContentType = "Content-Type" // Deserializer is used to decode the admission request body Deserializer = codecs.UniversalDeserializer() )
Functions ¶
func AdmissionError ¶
func AdmissionError(err error) *admissionv1.AdmissionResponse
AdmissionError wraps error as AdmissionResponse
func GetAdmissionRequestBody ¶
GetAdmissionRequestBody returns the body of the admission request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.