type AdmissionResponse … // VerifyAdmissionResponse checks the validity of the provided admission review object, and returns the // audit annotations, whether the response allowed the request, any provided patch/patchType/status, // or an error if the provided admission review was not valid. func VerifyAdmissionResponse(uid types.UID, mutating bool, review runtime.Object) (*AdmissionResponse, error) { … } // CreateAdmissionObjects returns the unique request uid, the AdmissionReview object to send the webhook and to decode the response into, // or an error if the webhook does not support receiving any of the admission review versions we know to send func CreateAdmissionObjects(versionedAttributes *admission.VersionedAttributes, invocation *generic.WebhookInvocation) (uid types.UID, request, response runtime.Object, err error) { … } // CreateV1AdmissionReview creates an AdmissionReview for the provided admission.Attributes func CreateV1AdmissionReview(uid types.UID, versionedAttributes *admission.VersionedAttributes, invocation *generic.WebhookInvocation) *admissionv1.AdmissionReview { … } // CreateV1beta1AdmissionReview creates an AdmissionReview for the provided admission.Attributes func CreateV1beta1AdmissionReview(uid types.UID, versionedAttributes *admission.VersionedAttributes, invocation *generic.WebhookInvocation) *admissionv1beta1.AdmissionReview { … }