From db725f935f8e9d345c027a6c11e5f310ecdf27b9 Mon Sep 17 00:00:00 2001 From: Md Soharab Ansari Date: Fri, 8 Mar 2024 14:24:26 +0530 Subject: [PATCH] Add decoder to validate webhook configuration Signed-off-by: Md Soharab Ansari --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 528f1b5cd..a95f367e9 100644 --- a/main.go +++ b/main.go @@ -144,6 +144,7 @@ func main() { Handler: &podwh.WebhookServer{ Client: mgr.GetClient(), SliceInfoClient: podwh.NewWebhookClient(), + Decoder: admission.NewDecoder(mgr.GetScheme()), }, }) }