// StartConversionWebhookServer starts an http server with the provided handler and returns the WebhookClientConfig // needed to configure a CRD to use this conversion webhook as its converter. func StartConversionWebhookServer(handler http.Handler) (func(), *apiextensionsv1.WebhookClientConfig, error) { … } type V1Beta1ReviewConverterFunc … type V1ReviewConverterFunc … // NewReviewWebhookHandler creates a handler that delegates the review conversion to the provided ReviewConverterFunc. func NewReviewWebhookHandler(t *testing.T, v1beta1ConverterFunc V1Beta1ReviewConverterFunc, v1ConverterFunc V1ReviewConverterFunc) http.Handler { … } type ObjectConverterFunc … // NewObjectConverterWebhookHandler creates a handler that delegates custom resource conversion to the provided ConverterFunc. func NewObjectConverterWebhookHandler(t *testing.T, converterFunc ObjectConverterFunc) http.Handler { … } var localhostCert … var localhostKey …