Closed theanotherwise closed 4 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 }}
<3
In short..
generates incorrect kube config:
Fix: