openshift/project: simplify egresspolicy - different env db won't allow access anyway
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
63451e80a1
commit
72ac044a5e
1 changed files with 5 additions and 4 deletions
|
@ -6,14 +6,15 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
egress:
|
egress:
|
||||||
{% if not allow_fas_db or env != "production" %}
|
{% if not allow_fas_db or env != "production" %}
|
||||||
|
{% if env == "staging" %}
|
||||||
|
- type: Deny
|
||||||
|
to:
|
||||||
|
cidrSelector: "10.5.128.96/32"
|
||||||
|
{% else %}
|
||||||
- type: Deny
|
- type: Deny
|
||||||
to:
|
to:
|
||||||
cidrSelector: "10.5.126.99/32"
|
cidrSelector: "10.5.126.99/32"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not allow_fas_db or env != "staging" %}
|
|
||||||
- type: Deny
|
|
||||||
to:
|
|
||||||
cidrSelector: "10.5.128.96/32"
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- type: Allow
|
- type: Allow
|
||||||
to:
|
to:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue