From 2a642b0dfde51ac8a099923c7dc44bf06d72674e Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Fri, 3 Mar 2023 11:17:54 +0100 Subject: [PATCH] =?UTF-8?q?Register=20Invitation=20validation=20webhook=20?= =?UTF-8?q?=F0=9F=A4=A6=E2=80=8D=E2=99=80=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller.go b/controller.go index 777b9733..24ad0e42 100644 --- a/controller.go +++ b/controller.go @@ -181,6 +181,9 @@ func setupManager(usernamePrefix, rolePrefix string, memberRoles []string, beRef mgr.GetWebhookServer().Register("/validate-appuio-io-v1-user", &webhook.Admission{ Handler: &webhooks.UserValidator{}, }) + mgr.GetWebhookServer().Register("/validate-user-appuio-io-v1-invitation", &webhook.Admission{ + Handler: &webhooks.InvitationValidator{}, + }) //+kubebuilder:scaffold:builder