diff --git a/charts/docker-mailserver/Chart.yaml b/charts/docker-mailserver/Chart.yaml index 497f2f41..308839f7 100644 --- a/charts/docker-mailserver/Chart.yaml +++ b/charts/docker-mailserver/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "13.3.1" description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker. name: docker-mailserver -version: 3.0.4 +version: 3.0.5 sources: - https://github.com/docker-mailserver/docker-mailserver-helm maintainers: diff --git a/charts/docker-mailserver/templates/service.yaml b/charts/docker-mailserver/templates/service.yaml index b83d5227..b642ca42 100644 --- a/charts/docker-mailserver/templates/service.yaml +++ b/charts/docker-mailserver/templates/service.yaml @@ -128,10 +128,10 @@ spec: {{- end }} type: {{ default "ClusterIP" .Values.service.type }} - {{ if eq .Values.service.type "LoadBalancer" -}} - {{ if .Values.service.loadBalancer.publicIp -}} + {{- if eq .Values.service.type "LoadBalancer" }} + {{- if .Values.service.loadBalancer.publicIp }} loadBalancerIP: {{ .Values.service.loadBalancer.publicIp }} - {{ if .Values.service.loadBalancer.allowedIps -}} + {{- if .Values.service.loadBalancer.allowedIps }} loadBalancerSourceRanges: {{ .Values.service.loadBalancer.allowedIps | toYaml | indent 4 }} {{- end }}