secret.yaml 600 Bytes
{{- if (and (eq .Values.configMap.entity_ds_db_conf "postgres") .Values.postgresql.enabled) }}
{{- else }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "moqui.fullname" . }}-dsauth
  labels:
    {{- include "moqui.labels" . | nindent 4 }}
stringData:
  entity_ds_password: {{ .Values.secret.entity_ds_password }}
---
{{- end }}

apiVersion: v1
kind: Secret
metadata:
  name: {{ include "moqui.fullname" . }}-opensearch
  labels:
    {{- include "moqui.labels" . | nindent 4 }}
stringData:
  elasticsearch_password: admin

{{- range .Values.extraSecrets }}
---
{{ . | toYaml }}
{{- end }}