Skip to content
Snippets Groups Projects
Commit 14092b31 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3880 network-policy fix xta dns config

parent 33176ab4
No related branches found
No related tags found
No related merge requests found
......@@ -45,10 +45,7 @@ spec:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
kubernetes.io/metadata.name: {{ required "networkPolicy.dnsServerNamespace must be set" (.Values.networkPolicy).dnsServerNamespace }}
ports:
- port: 53
protocol: UDP
......
......@@ -26,3 +26,7 @@ ozgcloud:
environment: test
bezeichner: helm
bundesland: by
networkPolicy:
dnsServerNamespace: test-dns-server-namespace
\ No newline at end of file
......@@ -27,6 +27,9 @@ release:
namespace: by-helm-test
templates:
- templates/network_policy.yaml
set:
networkPolicy:
dnsServerNamespace: test-dns-namespace
tests:
- it: should match apiVersion
asserts:
......@@ -64,10 +67,7 @@ tests:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
kubernetes.io/metadata.name: test-dns-namespace
ports:
- port: 53
protocol: UDP
......@@ -117,6 +117,7 @@ tests:
set:
networkPolicy:
disabled: false
dnsServerNamespace: test-dns-namespace
asserts:
- hasDocuments:
count: 1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment