diff --git a/templates/injector-mutating-webhook.yaml b/templates/injector-mutating-webhook.yaml index 65da037e..d0cafa66 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}}