// NewAdmissionWebhookServer sets up a webhook server with TLS enabled, returns URL and Close function // for the server func NewAdmissionWebhookServer(handler http.Handler) (string, func(), error) { … } // AdmissionWebhookHandler creates a HandlerFunc that decodes/encodes AdmissionReview and performs // given admit function func AdmissionWebhookHandler(t *testing.T, admit func(*v1beta1.AdmissionReview) error) http.HandlerFunc { … } var LocalhostCert … var LocalhostKey …