Skip to content

Commit

Permalink
Updates webhook command to use new mutating registry
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
  • Loading branch information
JoshVanL committed Feb 8, 2021
1 parent f8c3575 commit 90f0869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/webhook/app/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 90f0869

Please sign in to comment.