Init plugins in webhook cmd
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
parent
b75655fbb6
commit
56a604c6f0
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user