mirror of
https://github.com/helm/charts.git
synced 2026-08-20 04:47:32 +00:00
* [stable/phpbb] Avoid setting SMTP env. variables when SMTP parameters are not set Signed-off-by: tompizmor <tompizmor@gmail.com> * Not create smtpPassword secret if not needed Signed-off-by: tompizmor <tompizmor@gmail.com> * Remove extra whitespaces when render template Signed-off-by: tompizmor <tompizmor@gmail.com>
20 lines
585 B
YAML
20 lines
585 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: "{{ template "phpbb.fullname" . }}"
|
|
labels:
|
|
app: "{{ template "phpbb.fullname" . }}"
|
|
chart: "{{ template "phpbb.chart" . }}"
|
|
release: {{ .Release.Name | quote }}
|
|
heritage: {{ .Release.Service | quote }}
|
|
type: Opaque
|
|
data:
|
|
{{- if .Values.phpbbPassword }}
|
|
phpbb-password: {{ .Values.phpbbPassword | b64enc | quote }}
|
|
{{- else }}
|
|
phpbb-password: {{ randAlphaNum 10 | b64enc | quote }}
|
|
{{- end }}
|
|
{{- if .Values.smtpPassword }}
|
|
smtp-password: {{ default "" .Values.smtpPassword | b64enc | quote }}
|
|
{{- end }}
|