diff --git a/mailman3/templates/core.yaml b/mailman3/templates/core.yaml index ab4d873..bc7e328 100644 --- a/mailman3/templates/core.yaml +++ b/mailman3/templates/core.yaml @@ -60,7 +60,7 @@ spec: - name: DATABASE_CLASS value: mailman.database.postgresql.PostgreSQLDatabase - name: DATABASE_URL - value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@postgresql/mailman" + value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@{{ include 'mailman3/fullname' }}-postgresql/mailman" {{- else }} - name: DATABASE_CLASS value: mailman.database.sqlite.SQLiteDatabase diff --git a/mailman3/templates/web.yaml b/mailman3/templates/web.yaml index 703e91e..d3c794a 100644 --- a/mailman3/templates/web.yaml +++ b/mailman3/templates/web.yaml @@ -53,7 +53,7 @@ spec: {{- end }} {{- if .Values.postgresql.enabled }} - name: DATABASE_URL - value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@postgresql/mailman" + value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@{{ include 'mailman3/fullname' }}-postgresql/mailman" - name: DATABASE_TYPE value: postgresql {{- else }}