From 90f0869899c632b40d4e9f35cb3a086c63df96bd Mon Sep 17 00:00:00 2001 From: joshvanl Date: Mon, 8 Feb 2021 19:23:15 +0000 Subject: [PATCH] Updates webhook command to use new mutating registry Signed-off-by: joshvanl --- cmd/webhook/app/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/webhook/app/webhook.go b/cmd/webhook/app/webhook.go index 098ea153651..ef539ef48dd 100644 --- a/cmd/webhook/app/webhook.go +++ b/cmd/webhook/app/webhook.go @@ -35,7 +35,7 @@ import ( ) var validationHook handlers.ValidatingAdmissionHook = handlers.NewRegistryBackedValidator(logf.Log, webhook.Scheme, webhook.ValidationRegistry) -var mutationHook handlers.MutatingAdmissionHook = handlers.NewSchemeBackedDefaulter(logf.Log, webhook.Scheme) +var mutationHook handlers.MutatingAdmissionHook = handlers.NewSchemeBackedMutator(logf.Log, webhook.Scheme, webhook.MutationRegistry) var conversionHook handlers.ConversionHook = handlers.NewSchemeBackedConverter(logf.Log, webhook.Scheme) func NewServerWithOptions(log logr.Logger, opts options.WebhookOptions) (*server.Server, error) {