diff options
Diffstat (limited to 'chart/templates/job-db-migrate.yaml')
-rw-r--r-- | chart/templates/job-db-migrate.yaml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chart/templates/job-db-migrate.yaml b/chart/templates/job-db-migrate.yaml index e07832386..dd687a066 100644 --- a/chart/templates/job-db-migrate.yaml +++ b/chart/templates/job-db-migrate.yaml @@ -53,7 +53,11 @@ spec: - name: "DB_PASS" valueFrom: secretKeyRef: + {{- if .Values.postgresql.enabled }} name: {{ .Release.Name }}-postgresql + {{- else }} + name: {{ template "mastodon.fullname" . }} + {{- end }} key: postgresql-password - name: "REDIS_PASSWORD" valueFrom: |