{{- if not .Values.mariadb.enabled }}
apiVersion: v1
kind: Secret
metadata:
  name: "{{ template "prestashop.fullname" . }}-externaldb"
  labels:
    app: "{{ template "prestashop.name" . }}-externaldb"
    chart: "{{ template "prestashop.chart" . }}"
    release: {{ .Release.Name | quote }}
    heritage: {{ .Release.Service | quote }}
type: Opaque
data:
  db-password: {{ default "" .Values.externalDatabase.password | b64enc | quote }}
{{- end }}
