Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add pgbouncer.authType value #498

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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