Skip to content
Snippets Groups Projects
Commit 0d124625 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4455 network policy remove specific egress rules

parent 130ff851
No related branches found
No related tags found
No related merge requests found
......@@ -79,17 +79,6 @@ spec:
protocol: UDP
- port: 53
protocol: TCP
{{- if (.Values.kopProxyApi).url }}
- to:
- ipBlock:
cidr: {{ required "kopProxyApi.cidr muss angegeben sein" (.Values.kopProxyApi).cidr }}
{{- end }}
{{- if ((.Values.ozgcloud).bayernid).server }}
- to:
- ipBlock:
cidr: {{ required "ozgcloud.bayernid.cidr muss angegeben sein" ((.Values.ozgcloud).bayernid).cidr }}
{{- end }}
{{- with (.Values.networkPolicy).additionalEgressConfig }}
{{ toYaml . | indent 2 }}
{{- end }}
......
......@@ -121,33 +121,6 @@ tests:
matchLabels:
component: client2
- it: test postfach egress
set:
kopProxyApi:
url: https://postfach.test
cidr: 1.2.3.4/1
asserts:
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 1.2.3.4/1
- it: test bayernid egress
set:
ozgcloud:
bayernid:
server: https://bayernid.test
cidr: 2.3.4.5/1
asserts:
- contains:
path: spec.egress
content:
to:
- ipBlock:
cidr: 2.3.4.5/1
- it: add egress rules by values
set:
networkPolicy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment