fixed issues with schema of network policy

also fixed encoding of matahLabels. Now using json format so that it
also works for empty maps.
This commit is contained in:
2025-01-03 00:10:32 +01:00
parent d85baf3beb
commit b8dfaa55a4
6 changed files with 40 additions and 10 deletions
@@ -0,0 +1,19 @@
{{- if not .Open }}
---
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: allow-dns-in-namespace
namespace: {{ .Name }}
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- ports:
- port: 53
protocol: TCP
- port: 53
protocol: UDP
{{- end }}