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