Skip to content

Commit

Permalink
fix: pgbouncer config for non-default database name (#398)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathew Wicks <[email protected]>
  • Loading branch information
thesuperzapper authored Aug 23, 2021
1 parent 1043f95 commit 4e0d931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/airflow/templates/pgbouncer/_helpers/pgbouncer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Define the content of the `pgbouncer.ini` config file.
{{- define "airflow.pgbouncer.pgbouncer.ini" }}
[databases]
{{- if .Values.postgresql.enabled }}
airflow = host={{ printf "%s.%s.svc.cluster.local" (include "airflow.postgresql.fullname" .) (.Release.Namespace) }} port=5432
* = host={{ printf "%s.%s.svc.cluster.local" (include "airflow.postgresql.fullname" .) (.Release.Namespace) }} port=5432
{{- else }}
airflow = host={{ .Values.externalDatabase.host }} port={{ .Values.externalDatabase.port }}
* = host={{ .Values.externalDatabase.host }} port={{ .Values.externalDatabase.port }}
{{- end }}

[pgbouncer]
Expand Down

0 comments on commit 4e0d931

Please sign in to comment.