Skip to content

Commit

Permalink
fix(base-cluster/kyverno): fix excluded namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinWolff authored and tasches committed Nov 23, 2023
1 parent b38a33b commit 6cddb62
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions charts/base-cluster/templates/kyverno/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ spec:
# This only works in clusters >=1.22 because it relies on the
# kubernetes.io/metadata.name label on namespaces, which is active by
# default since 1.22.
webhooks:
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values: {{- include "base-cluster.kyverno.ignoredNamespaces" . | nindent 18 }}
config:
webhooks:
- namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values: {{- include "base-cluster.kyverno.ignoredNamespaces" . | nindent 18 }}
{{- end }}

0 comments on commit 6cddb62

Please sign in to comment.