mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-07-17 12:10:34 +08:00
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:
@@ -6,14 +6,15 @@ metadata:
|
||||
spec:
|
||||
egress:
|
||||
{% if not allow_fas_db or env != "production" %}
|
||||
{% if env == "staging" %}
|
||||
- type: Deny
|
||||
to:
|
||||
cidrSelector: "10.5.128.96/32"
|
||||
{% else %}
|
||||
- type: Deny
|
||||
to:
|
||||
cidrSelector: "10.5.126.99/32"
|
||||
{% endif %}
|
||||
{% if not allow_fas_db or env != "staging" %}
|
||||
- type: Deny
|
||||
to:
|
||||
cidrSelector: "10.5.128.96/32"
|
||||
{% endif %}
|
||||
- type: Allow
|
||||
to:
|
||||
|
||||
Reference in New Issue
Block a user