No more netpols fo pods in open namespaces.

This commit is contained in:
2025-01-02 18:24:02 +01:00
parent 6d05f0501f
commit 933b46c68c
4 changed files with 6 additions and 6 deletions
+3 -2
View File
@@ -35,11 +35,12 @@
{{- end }}
{{- end }}
{{- if not .app.Namespace.Open }}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: "{{.app.Name}}"
namespace: "{{.app.Namespace}}"
namespace: "{{.app.Namespace.Name }}"
labels: {{ .labels | toYaml | nindent 4 }}
spec:
podSelector: {{ .app.MatchLabels | toYaml | nindent 4 }}
@@ -65,4 +66,4 @@ spec:
{{- template "networks" .egress }}
{{- end }}
THEEND
{{- end }}