Fix DATABASE_URL host: chart failed to render

5facaf7 used `{{ include 'mailman3/fullname' }}`, which is a template parse
error (single quotes, wrong name, no context), so `helm template` and
`helm install` failed for any values. Use `{{ .Release.Name }}-postgresql`,
the name of the Bitnami subchart's Service. For the deployed release name
`mailman3` this is `mailman3-postgresql`, as intended; `mailman3.fullname`
would only match when the release name contains "mailman3".

v1.0.8 (what the role deploys) is unaffected. No release cut.

Refs DevOps/software-infrastructure#55

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 18:17:37 -05:00
co-authored by Claude Opus 5.5
parent 5facaf79bb
commit ada1ff3466
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 }}@{{ include 'mailman3/fullname' }}-postgresql/mailman"
value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@{{ .Release.Name }}-postgresql/mailman"
{{- else }}
- name: DATABASE_CLASS
value: mailman.database.sqlite.SQLiteDatabase
+1 -1
View File
@@ -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 }}@{{ include 'mailman3/fullname' }}-postgresql/mailman"
value: "postgresql://{{ .Values.postgresql.global.postgresql.auth.username }}:{{ .Values.postgresql.global.postgresql.auth.password }}@{{ .Release.Name }}-postgresql/mailman"
- name: DATABASE_TYPE
value: postgresql
{{- else }}