Skip to content

Commit 5a65b6b

Browse files
authored
fix: prevent overzealous whitespace removal (#509)
Too much whitespace is removed here; if `.type` is `LoadBalancer` then `type` and `externalTrafficPolicy` end up on the same line producing invalid YAML. Removing the last dash means a newline will be inserted between the entries as expected. Resolves #508 Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
1 parent 90296a8 commit 5a65b6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

charts/mailu/templates/front/service-external.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
app.kubernetes.io/component: front
2222
{{- with .Values.front.externalService }}
2323
type: {{ .type | default "ClusterIP" }}
24-
{{- if ne .type "ClusterIP" -}}
24+
{{- if ne .type "ClusterIP" }}
2525
externalTrafficPolicy: {{ .externalTrafficPolicy | default "Local" }}
2626
{{- end }}
2727
{{- if .loadBalancerIP }}

0 commit comments

Comments
 (0)