{{- if and (not .Values.postgresql.enabled) (not .Values.database.existingSecret) }} apiVersion: v1 kind: Secret metadata: name: {{ include "archify-sync.fullname" . }}-database labels: {{- include "archify-sync.labels" . | nindent 4 }} type: Opaque stringData: url: {{ .Values.database.url | quote }} {{- end }}