diff --git a/cmd/sub/run.go b/cmd/sub/run.go index 6c141b3..6b8e0b9 100644 --- a/cmd/sub/run.go +++ b/cmd/sub/run.go @@ -51,7 +51,7 @@ func run(addr string, port int, profs []hooks.SecurityProfile) error { wh := mgr.GetWebhookServer() for _, prof := range profs { - wh.Register("/mutate-"+prof.Name, hooks.NewPodMutator(mgr.GetClient(), ctrl.Log.WithName("mutate-"+prof.Name), &dec, prof)) + wh.Register("/mutate-"+prof.Name, hooks.NewPodMutator(mgr.GetClient(), ctrl.Log.WithName("mutate-"+prof.Name), dec, prof)) wh.Register("/validate-"+prof.Name, hooks.NewPodValidator(mgr.GetClient(), ctrl.Log.WithName("validate-"+prof.Name), &dec, prof)) }