Skip to content

Commit e177408

Browse files
authored
fix: skip injecting smtp env when empty (#78)
1 parent 4d268e0 commit e177408

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/deployment.yml

+5-5
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 | quote) "") }}
168+
{{- if not (eq .Values.mailer.host "") }}
169169
- name: SMTP_HOST
170170
value: {{ .Values.mailer.host }}
171171
{{- end }}
172-
{{- if not (eq (.Values.mailer.port | quote) "") }}
172+
{{- if not (eq .Values.mailer.port "") }}
173173
- name: SMTP_PORT
174174
value: {{ .Values.mailer.port | quote }}
175175
{{- end }}
176-
{{- if not (eq (.Values.mailer.ssl | quote) "") }}
176+
{{- if not (eq .Values.mailer.ssl "") }}
177177
- name: SMTP_SSL
178178
value: {{ .Values.mailer.ssl | quote }}
179179
{{- end }}
180-
{{- if not (eq (.Values.mailer.tls | quote) "") }}
180+
{{- if not (eq .Values.mailer.tls "") }}
181181
- name: SMTP_TLS
182182
value: {{ .Values.mailer.tls | quote }}
183183
{{- end }}
184-
{{- if not (eq (.Values.mailer.user | quote) "") }}
184+
{{- if not (eq .Values.mailer.user "") }}
185185
- name: SMTP_USER
186186
value: {{ .Values.mailer.user | quote }}
187187
{{- end }}

0 commit comments

Comments
 (0)