robjuz / helm-charts

https://robjuz.github.io/helm-charts/index.yaml
34 stars 30 forks source link

nominatim: loadBalancerSourceRanges not working when more than one #92

Closed theanotherwise closed 4 hours ago

theanotherwise commented 5 hours ago

In short..

loadBalancerSourceRanges:
  - 173.245.48.0/20
  - 103.21.244.0/22
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }}
{{- end }}

generates incorrect kube config:

loadBalancerSourceRanges: [173.245.48.0/20 103.21.244.0/22]

Fix:

{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges | toYaml | nindent 4 }}
{{- end }}
theanotherwise commented 4 hours ago

<3