Skip to content
Snippets Groups Projects
Commit 3b41fe0a authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3880 network policy dynamic dns server config

parent ab863de9
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,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
......
......@@ -45,6 +45,9 @@ tests:
name: network-policy-alfa
namespace: by-helm-test
- it: validate spec
set:
networkPolicy:
dnsServerNamespace: kube-system
asserts:
- equal:
path: spec
......@@ -74,9 +77,6 @@ tests:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- port: 53
protocol: UDP
......
......@@ -45,3 +45,4 @@ image:
networkPolicy:
ssoPublicIp: 51.89.117.53/32
dnsServerNamespace: dummy-dns
\ 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