about summary refs log tree commit diff
path: root/chart/templates/deployment-sidekiq.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'chart/templates/deployment-sidekiq.yaml')
-rw-r--r--chart/templates/deployment-sidekiq.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/chart/templates/deployment-sidekiq.yaml b/chart/templates/deployment-sidekiq.yaml
index 5457183a3..f300a5e63 100644
--- a/chart/templates/deployment-sidekiq.yaml
+++ b/chart/templates/deployment-sidekiq.yaml
@@ -73,7 +73,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: