From 7b9bebeb508452c282828cec349bd0c14c86e962 Mon Sep 17 00:00:00 2001 From: Aviv Guiser Date: Fri, 5 Jul 2024 20:29:19 +0300 Subject: [PATCH] add scope to mutating webhook Signed-off-by: Aviv Guiser --- templates/injector-mutating-webhook.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/injector-mutating-webhook.yaml b/templates/injector-mutating-webhook.yaml index 65da037ed..d0cafa66f 100644 --- a/templates/injector-mutating-webhook.yaml +++ b/templates/injector-mutating-webhook.yaml @@ -36,6 +36,7 @@ webhooks: apiGroups: [""] apiVersions: ["v1"] resources: ["pods"] + scope: "Namespaced" {{- if or (.Values.injector.namespaceSelector) (((.Values.injector.webhook)).namespaceSelector) }} namespaceSelector: {{ toYaml (((.Values.injector.webhook)).namespaceSelector | default .Values.injector.namespaceSelector) | indent 6}}