Files
deprecated-helm-charts/stable/ghost/templates/secrets.yaml
T
Juan Ariza Toledano 4388ff0751 [stable/ghost] Re-define ingress/smtp configuration (#10461)
* [stable/ghost] Re-define ingress/smtp configuration

Signed-off-by: juan131 <juan@bitnami.com>

* Document SMTP parameters on README.md

Signed-off-by: juan131 <juan@bitnami.com>

* Revert breaking changes on labels

Signed-off-by: juan131 <juan@bitnami.com>
2019-01-08 08:16:24 -08:00

20 lines
583 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: {{ template "ghost.fullname" . }}
labels:
app: "{{ template "ghost.fullname" . }}"
chart: "{{ template "ghost.chart" . }}"
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
type: Opaque
data:
{{- if .Values.ghostPassword }}
ghost-password: {{ .Values.ghostPassword | b64enc | quote }}
{{- else }}
ghost-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
{{- if .Values.smtpPassword }}
smtp-password: {{ default "" .Values.smtpPassword | b64enc | quote }}
{{- end }}