Skip to content

Commit 5955d05

Browse files
authored
fix: fix rendering when smtp types are not strings (#80)
* fix: fix rendering when smtp types are not strings * add quotes to host
1 parent cf9b8f1 commit 5955d05

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/deployment.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -165,23 +165,23 @@ spec:
165165
{{- include "horizon.mongodbUri" (dict "context" .) | nindent 14 }}
166166
- name: APPLICATION_SECRET
167167
{{- include "horizon.appSecret" (dict "context" .) | nindent 14 }}
168-
{{- if not (eq .Values.mailer.host "") }}
168+
{{- if .Values.mailer.host }}
169169
- name: SMTP_HOST
170-
value: {{ .Values.mailer.host }}
170+
value: {{ .Values.mailer.host | quote }}
171171
{{- end }}
172-
{{- if not (eq .Values.mailer.port "") }}
172+
{{- if .Values.mailer.port }}
173173
- name: SMTP_PORT
174174
value: {{ .Values.mailer.port | quote }}
175175
{{- end }}
176-
{{- if not (eq .Values.mailer.ssl "") }}
176+
{{- if or (not (kindIs "string" .Values.mailer.ssl)) (not (empty .Values.mailer.ssl)) }}
177177
- name: SMTP_SSL
178178
value: {{ .Values.mailer.ssl | quote }}
179179
{{- end }}
180-
{{- if not (eq .Values.mailer.tls "") }}
180+
{{- if or (not (kindIs "string" .Values.mailer.tls)) (not (empty .Values.mailer.tls)) }}
181181
- name: SMTP_TLS
182182
value: {{ .Values.mailer.tls | quote }}
183183
{{- end }}
184-
{{- if not (eq .Values.mailer.user "") }}
184+
{{- if .Values.mailer.user }}
185185
- name: SMTP_USER
186186
value: {{ .Values.mailer.user | quote }}
187187
{{- end }}

0 commit comments

Comments
 (0)