Files
charts/bitnami/ghost/templates/secrets.yaml
Daniel Arteaga 11da0731a1 [bitnami/ghost] chart standardization (#2044)
* charts standardisation - ghost

Signed-off-by: darteaga <darteaga@bitnami.com>

* add upgrading major version notes

* fix secrets password

* [bitnami/ghost] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
2020-04-30 14:17:50 +02:00

18 lines
511 B
YAML

{{- if empty .Values.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "ghost.fullname" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
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 }}
{{- end }}