Files
charts/bitnami/phpbb/templates/secrets.yaml
Francisco de Paz Galán 9092df7e71 [bitnami/phpBB] Major version. Adapt Chart to apiVersion: v2 and Update MariaDB Dependency (#4353)
* Drop Helm 2 support and update mariadb major

* Add missing info

* Migrate mariadb values

* Remove requirements.lock

* Format/Fix linter issues in yaml

* [bitnami/phpbb] Update components versions

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

Co-authored-by: fdepaz <fdepaz@bitnami.com>
Co-authored-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
2020-11-19 17:13:34 +01:00

23 lines
852 B
YAML

{{- if not .Values.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "common.names.fullname" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: phpbb
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: Opaque
data:
{{- if .Values.phpbbPassword }}
phpbb-password: {{ default "" .Values.phpbbPassword | b64enc | quote }}
{{- else }}
phpbb-password: {{ randAlphaNum 10 | b64enc | quote }}
{{- end }}
smtp-password: {{ default "" .Values.smtpPassword | b64enc | quote }}
{{- end }}