Skip to content

Commit

Permalink
feat: add pgbouncer.authType value
Browse files Browse the repository at this point in the history
Signed-off-by: Mathew Wicks <thesuperzapper@users.noreply.github.com>
  • Loading branch information
thesuperzapper committed Apr 1, 2022
1 parent a6ac5c3 commit 4fd9454
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion charts/airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1313,10 +1313,17 @@ postgresql:
## to use the external db, the embedded one must be disabled
enabled: false

## for full list of PgBouncer configs, see values.yaml
pgbouncer:
## for other PgBouncer configs, see the `pgbouncer.*` values
enabled: true

## WARNING: you must set "scram-sha-256" if using Azure PostgreSQL (single server mode)
authType: md5

serverSSL:
## WARNING: you must set "verify-ca" if using Azure PostgreSQL
mode: prefer

externalDatabase:
type: postgres

Expand Down Expand Up @@ -2009,6 +2016,7 @@ Parameter | Description | Default
`pgbouncer.livenessProbe.*` | configs for the pgbouncer Pods' liveness probe | `<see values.yaml>`
`pgbouncer.startupProbe.*` | configs for the pgbouncer Pods' startup probe | `<see values.yaml>`
`pgbouncer.terminationGracePeriodSeconds` | the maximum number of seconds to wait for queries upon pod termination, before force killing | `120`
`pgbouncer.authType` | sets pgbouncer config: `auth_type` | `md5`
`pgbouncer.maxClientConnections` | sets pgbouncer config: `max_client_conn` | `1000`
`pgbouncer.poolSize` | sets pgbouncer config: `default_pool_size` | `20`
`pgbouncer.logDisconnections` | sets pgbouncer config: `log_disconnections` | `0`
Expand Down
2 changes: 1 addition & 1 deletion charts/airflow/templates/pgbouncer/_helpers/pgbouncer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ignore_startup_parameters = extra_float_digits
listen_port = 6432
listen_addr = *

auth_type = md5
auth_type = {{ .Values.pgbouncer.authType }}
auth_file = /home/pgbouncer/users.txt

log_disconnections = {{ .Values.pgbouncer.logDisconnections }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,10 @@ pgbouncer:
##
terminationGracePeriodSeconds: 120

## sets pgbouncer config: `auth_type`
##
authType: md5

## sets pgbouncer config: `max_client_conn`
##
maxClientConnections: 1000
Expand Down

0 comments on commit 4fd9454

Please sign in to comment.