From bf9ad82b36cf4935b26b53939fe290ac81c36ec5 Mon Sep 17 00:00:00 2001 From: Michael Haswell Date: Mon, 15 Jan 2024 11:25:08 -0800 Subject: [PATCH] Changed ip_whitelist in route-web.yaml to be optional Removed default value for ip_whiteliost in values.yaml --- helm/templates/route-web.yaml | 2 ++ helm/values.yaml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/helm/templates/route-web.yaml b/helm/templates/route-web.yaml index a77d7aa34..89ef8329a 100644 --- a/helm/templates/route-web.yaml +++ b/helm/templates/route-web.yaml @@ -6,7 +6,9 @@ metadata: labels: {{- include "NotifyBC.labels" . | nindent 4 }} annotations: + {{- if .Values.route.web.ip_whitelist }} haproxy.router.openshift.io/ip_whitelist: {{ .Values.route.web.ip_whitelist }} + {{- end }} haproxy.router.openshift.io/timeout: 24d name: {{ $fullName }}-web spec: diff --git a/helm/values.yaml b/helm/values.yaml index c65b4acfd..9132f23f8 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -130,7 +130,6 @@ route: host: '' tls: termination: edge - ip_whitelist: 0.0.0.0/0 smtp: host: ''