Skip to content

Commit

Permalink
Fix error when specifying service type of LoadBalancer. #99.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed Mar 4, 2024
1 parent 3af72fa commit d84ffc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/docker-mailserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions charts/docker-mailserver/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d84ffc6

Please sign in to comment.