From f9488621cdad0a9f41101c89ca15bdb61740a328 Mon Sep 17 00:00:00 2001 From: Alexander Slepoy Date: Thu, 29 Sep 2022 08:59:10 +0300 Subject: [PATCH 1/3] Add loadBalancerSourceRanges --- chart/pyroscope/templates/service.yaml | 3 +++ chart/pyroscope/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/chart/pyroscope/templates/service.yaml b/chart/pyroscope/templates/service.yaml index b2488e2..cda7443 100644 --- a/chart/pyroscope/templates/service.yaml +++ b/chart/pyroscope/templates/service.yaml @@ -13,6 +13,9 @@ spec: {{- if (and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP))) }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }} + loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }} + {{- end }} ports: - port: {{ .Values.service.port }} {{- if .Values.service.nodePort }} diff --git a/chart/pyroscope/values.yaml b/chart/pyroscope/values.yaml index c941597..607a1e0 100644 --- a/chart/pyroscope/values.yaml +++ b/chart/pyroscope/values.yaml @@ -89,6 +89,8 @@ service: annotations: {} # nodePort: # loadBalancerIP: + # loadBalancerSourceRanges: + # - 10.10.10.0/24 ingress: # -- Enables Ingress From daaecdd9ec99bf3ec9abf86055b3e4bf54bed4e3 Mon Sep 17 00:00:00 2001 From: Alexander Slepoy Date: Thu, 29 Sep 2022 09:09:09 +0300 Subject: [PATCH 2/3] fix loadBalancerSourceRanges --- chart/pyroscope/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/pyroscope/templates/service.yaml b/chart/pyroscope/templates/service.yaml index cda7443..f0360e7 100644 --- a/chart/pyroscope/templates/service.yaml +++ b/chart/pyroscope/templates/service.yaml @@ -14,7 +14,7 @@ spec: loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }} - loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: {{ toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }} {{- end }} ports: - port: {{ .Values.service.port }} From b44b1d6b86b0a9a0842224503dcf913e2cb1ed1d Mon Sep 17 00:00:00 2001 From: Alexander Slepoy Date: Sun, 26 Mar 2023 11:08:24 +0300 Subject: [PATCH 3/3] Update chart/pyroscope/values.yaml Co-authored-by: Anton Kolesnikov --- chart/pyroscope/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/pyroscope/values.yaml b/chart/pyroscope/values.yaml index 607a1e0..eeb6c58 100644 --- a/chart/pyroscope/values.yaml +++ b/chart/pyroscope/values.yaml @@ -89,8 +89,8 @@ service: annotations: {} # nodePort: # loadBalancerIP: - # loadBalancerSourceRanges: - # - 10.10.10.0/24 + # -- If specified and supported by the platform, this will restrict traffic through the load-balancer to the specified client IPs. + loadBalancerSourceRanges: [] ingress: # -- Enables Ingress