Skip to content
Snippets Groups Projects
Commit 57d79a02 authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

OZG-3880 network-policy fix xta dns config

parent cb668a9d
No related branches found
No related tags found
No related merge requests found
...@@ -45,10 +45,7 @@ spec: ...@@ -45,10 +45,7 @@ spec:
- to: - to:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: kube-system kubernetes.io/metadata.name: {{ required "networkPolicy.dnsServerNamespace must be set" (.Values.networkPolicy).dnsServerNamespace }}
podSelector:
matchLabels:
k8s-app: kube-dns
ports: ports:
- port: 53 - port: 53
protocol: UDP protocol: UDP
......
...@@ -26,3 +26,7 @@ ozgcloud: ...@@ -26,3 +26,7 @@ ozgcloud:
environment: test environment: test
bezeichner: helm bezeichner: helm
bundesland: by bundesland: by
networkPolicy:
dnsServerNamespace: test-dns-server-namespace
\ No newline at end of file
...@@ -27,6 +27,9 @@ release: ...@@ -27,6 +27,9 @@ release:
namespace: by-helm-test namespace: by-helm-test
templates: templates:
- templates/network_policy.yaml - templates/network_policy.yaml
set:
networkPolicy:
dnsServerNamespace: test-dns-namespace
tests: tests:
- it: should match apiVersion - it: should match apiVersion
asserts: asserts:
...@@ -64,10 +67,7 @@ tests: ...@@ -64,10 +67,7 @@ tests:
- to: - to:
- namespaceSelector: - namespaceSelector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: kube-system kubernetes.io/metadata.name: test-dns-namespace
podSelector:
matchLabels:
k8s-app: kube-dns
ports: ports:
- port: 53 - port: 53
protocol: UDP protocol: UDP
...@@ -117,6 +117,7 @@ tests: ...@@ -117,6 +117,7 @@ tests:
set: set:
networkPolicy: networkPolicy:
disabled: false disabled: false
dnsServerNamespace: test-dns-namespace
asserts: asserts:
- hasDocuments: - hasDocuments:
count: 1 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