Skip to content

Commit

Permalink
Merge pull request #1583 from grycap/devel
Browse files Browse the repository at this point in the history
Add openshift ip_whitelist
  • Loading branch information
micafer authored Jun 28, 2024
2 parents 667d241 + 2ec6337 commit d50aace
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IM/connectors/Kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ def _generate_ingress_data(self, namespace, name, dns, port):
if dns_url[2]:
path = dns_url[2]

ingress_data["metadata"]["annotations"] = {
"haproxy.router.openshift.io/ip_whitelist": "0.0.0.0/0",
}
# Add Let's Encrypt annotation asuming that the cluster has
# cert-manager installed and the issuer is letsencrypt-prod
if secure:
ingress_data["metadata"]["annotations"] = {
"cert-manager.io/cluster-issuer": "letsencrypt-prod",
"haproxy.router.openshift.io/ip_whitelist": "0.0.0.0/0",
}
ingress_data["metadata"]["annotations"]["cert-manager.io/cluster-issuer"] = "letsencrypt-prod"

ingress_data["spec"] = {
"rules": [
Expand Down

0 comments on commit d50aace

Please sign in to comment.