Skip to content

Commit

Permalink
Init plugins in webhook cmd
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
  • Loading branch information
JoshVanL committed Mar 26, 2021
1 parent b75655f commit 56a604c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/webhook/app/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ func NewServerWithOptions(log logr.Logger, opts options.WebhookOptions) (*server
if err != nil {
return nil, fmt.Errorf("error creating kubernetes client: %s", err)
}

webhook.ValidationRegistry = webhook.ValidationRegistry.WithSubjectAccessReviewClient(cl.AuthorizationV1().SubjectAccessReviews())
validationHook.InitPlugins(cl)

var source tls.CertificateSource
switch {
Expand Down

0 comments on commit 56a604c

Please sign in to comment.