NetworkPolicy: ingress namespaces configurable, allow traefik (migration from ingress-nginx)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-02 12:11:08 +01:00
co-authored by Claude Opus 5.5
parent 7eee45befb
commit c4bd8ebd12
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -29,9 +29,11 @@ spec:
- Egress
ingress:
- from:
{{- range $root.Values.networkPolicy.ingressNamespaces }}
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx
kubernetes.io/metadata.name: {{ . }}
{{- end }}
{{- range $app.networkPolicy.allowFrom }}
- podSelector:
matchLabels: