Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register registers the validatingWebhookConfiguration to kube-apiserver Note: always return err as nil, it will be used by wait.PollUntil().
func Serve ¶
func Serve(w http.ResponseWriter, r *http.Request, admitter func(*v1beta1.AdmissionReview) *v1beta1.AdmissionResponse)
Serve handles the http portion of a request prior to handing to an admit function
func ToAdmissionResponse ¶
func ToAdmissionResponse(err error) *v1beta1.AdmissionResponse
ToAdmissionResponse is a helper function to create an AdmissionResponse with an embedded error
Types ¶
Click to show internal directories.
Click to hide internal directories.