{{- if and (not .Values.postgresql.deploy) (.Values.postgresql.auth.password) -}} apiVersion: v1 kind: Secret metadata: name: {{ include "langfuse.fullname" . }}-postgresql labels: {{- include "langfuse.labels" . | nindent 4 }} type: Opaque data: postgres-password: {{ .Values.postgresql.auth.password | toString | b64enc | quote }} {{- if .Values.postgresql.directUrl }} postgres-direct-url: {{ .Values.postgresql.directUrl | toString | b64enc | quote }} {{- end }} {{- if .Values.postgresql.shadowDatabaseUrl }} postgres-shadow-database-url: {{ .Values.postgresql.shadowDatabaseUrl | toString | b64enc | quote }} {{- end }} {{- end }}