From 0a4c9ed35c3ce3c5c7ec1f875967022eb9b971be Mon Sep 17 00:00:00 2001 From: Bart Geens Date: Wed, 11 May 2022 12:04:02 +0200 Subject: [PATCH 1/5] add loadBalancerSourceRanges --- charts/pomerium/templates/proxy-service.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/pomerium/templates/proxy-service.yaml b/charts/pomerium/templates/proxy-service.yaml index f7e5353..8f5ef25 100644 --- a/charts/pomerium/templates/proxy-service.yaml +++ b/charts/pomerium/templates/proxy-service.yaml @@ -31,6 +31,10 @@ spec: {{- end }} {{- if .Values.proxy.service.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.proxy.service.externalTrafficPolicy }} + {{- end }} + {{- if .Values.proxy.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: +{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }} {{- end }} ports: - port: {{ template "pomerium.proxy.trafficPort.number" . }} From b0089a756762272061628f14edf4aae72a60d40f Mon Sep 17 00:00:00 2001 From: Bart Geens Date: Wed, 11 May 2022 13:53:17 +0200 Subject: [PATCH 2/5] fix --- charts/pomerium/templates/proxy-service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pomerium/templates/proxy-service.yaml b/charts/pomerium/templates/proxy-service.yaml index 8f5ef25..554af2c 100644 --- a/charts/pomerium/templates/proxy-service.yaml +++ b/charts/pomerium/templates/proxy-service.yaml @@ -34,7 +34,7 @@ spec: {{- end }} {{- if .Values.proxy.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: -{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }} +{{ toYaml .Values.proxy.service.loadBalancerSourceRanges | indent 4 }} {{- end }} ports: - port: {{ template "pomerium.proxy.trafficPort.number" . }} From e014b7920375d3b2322995dc016a98e2bec7d3e5 Mon Sep 17 00:00:00 2001 From: Bart Geens Date: Wed, 11 May 2022 14:08:24 +0200 Subject: [PATCH 3/5] fix --- charts/pomerium/templates/proxy-service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/pomerium/templates/proxy-service.yaml b/charts/pomerium/templates/proxy-service.yaml index 554af2c..2f98a18 100644 --- a/charts/pomerium/templates/proxy-service.yaml +++ b/charts/pomerium/templates/proxy-service.yaml @@ -32,9 +32,9 @@ spec: {{- if .Values.proxy.service.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.proxy.service.externalTrafficPolicy }} {{- end }} - {{- if .Values.proxy.service.loadBalancerSourceRanges }} + {{- if .Values.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: -{{ toYaml .Values.proxy.service.loadBalancerSourceRanges | indent 4 }} +{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }} {{- end }} ports: - port: {{ template "pomerium.proxy.trafficPort.number" . }} From 35e4a95cc135a4d2924e9229f9a4775836341a07 Mon Sep 17 00:00:00 2001 From: Bart Geens Date: Wed, 11 May 2022 14:18:22 +0200 Subject: [PATCH 4/5] fix --- charts/pomerium/templates/proxy-service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/pomerium/templates/proxy-service.yaml b/charts/pomerium/templates/proxy-service.yaml index 2f98a18..554af2c 100644 --- a/charts/pomerium/templates/proxy-service.yaml +++ b/charts/pomerium/templates/proxy-service.yaml @@ -32,9 +32,9 @@ spec: {{- if .Values.proxy.service.externalTrafficPolicy }} externalTrafficPolicy: {{ .Values.proxy.service.externalTrafficPolicy }} {{- end }} - {{- if .Values.service.loadBalancerSourceRanges }} + {{- if .Values.proxy.service.loadBalancerSourceRanges }} loadBalancerSourceRanges: -{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }} +{{ toYaml .Values.proxy.service.loadBalancerSourceRanges | indent 4 }} {{- end }} ports: - port: {{ template "pomerium.proxy.trafficPort.number" . }} From f9a3256bf0e9732ebaa860aa5e89d4fec006fee1 Mon Sep 17 00:00:00 2001 From: Bart Geens Date: Mon, 16 May 2022 17:08:35 +0200 Subject: [PATCH 5/5] add loadBalancerSourceRanges key to default values file for discoverability --- charts/pomerium/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/pomerium/values.yaml b/charts/pomerium/values.yaml index faa3a38..9e7bdf9 100644 --- a/charts/pomerium/values.yaml +++ b/charts/pomerium/values.yaml @@ -174,6 +174,7 @@ proxy: annotations: {} nodePort: "" type: "" + loadBalancerSourceRanges: {} deployment: annotations: {} extraEnv: {}