From 8f988d0e8f1493a54a6afb85eb9aa1c6818a9acd Mon Sep 17 00:00:00 2001 From: AvivGuiser Date: Thu, 11 Jul 2024 09:37:27 +0300 Subject: [PATCH] add scope to mutating webhook (#1037) 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}}