{{- if .Values.vault.enabled }} apiVersion: secrets.hashicorp.com/v1beta1 kind: VaultDynamicSecret metadata: name: vso-db namespace: {{ .Release.Namespace }} spec: mount: postgres path: {{ .Values.vault.postgresPath }} destination: create: true name: vso-db-credentials rolloutRestartTargets: - kind: Deployment name: {{ include "dance-lessons-coach.fullname" . }} vaultAuthRef: auth {{- end }}