From 793d878b18e5eec088518a95eab41321623cfd05 Mon Sep 17 00:00:00 2001 From: shivkumar dudhani Date: Fri, 13 Dec 2019 11:13:58 -0800 Subject: [PATCH] correct webhook endpoint --- pkg/webhooks/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/webhooks/server.go b/pkg/webhooks/server.go index e861d3b162..1b5dd58c5f 100644 --- a/pkg/webhooks/server.go +++ b/pkg/webhooks/server.go @@ -118,10 +118,9 @@ func NewWebhookServer( } mux := http.NewServeMux() mux.HandleFunc(config.MutatingWebhookServicePath, ws.serve) - mux.HandleFunc(config.ValidatingWebhookServicePath, ws.serve) + mux.HandleFunc(config.VerifyMutatingWebhookServicePath, ws.serve) mux.HandleFunc(config.PolicyValidatingWebhookServicePath, ws.serve) mux.HandleFunc(config.PolicyMutatingWebhookServicePath, ws.serve) - ws.server = http.Server{ Addr: ":443", // Listen on port for HTTPS requests TLSConfig: &tlsConfig,