Skip to content

Commit e1f4a41

Browse files
committed
Merge branch 'pr29'
2 parents 0229a8a + 8edcb8a commit e1f4a41

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

charts/pgbouncer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: pgbouncer
33
description: A Helm chart for deploying PgBouncer, a PostgreSQL connection pooler, on Kubernetes
44
type: application
5-
version: 3.0.1
5+
version: 3.1.0
66
appVersion: 1.24.1
77
kubeVersion: ">= 1.22.0-0"
88
icon: https://icoretech.github.io/helm/charts/pgbouncer/logo.png

charts/pgbouncer/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ The following table lists the configurable parameters of the PgBouncer chart and
4040
| config.adminUserKey | string | `"adminUser"` | The key in the existingAdminSecret that corresponds to the admin username. |
4141
| config.authPassword | string | `nil` | Password for the authUser above, if used. |
4242
| config.authUser | string | `nil` | If set, PgBouncer will use this user to authenticate client connections. |
43-
| config.databases | object | `{}` | Mapping of database names to connection parameters. E.g.: mydb: host=postgresql port=5432 |
43+
| config.databases | object | `{}` | Mapping of database names to connection parameters. E.g.: mydb = host=postgresql port=5432 |
4444
| config.existingAdminSecret | string | `""` | If set, skip creating a new secret for admin credentials, and reference this existing Secret name instead. |
4545
| config.existingUserlistSecret | string | `""` | Reference to an existing Secret that contains a userlist.txt file, with entries for other users/passwords. |
4646
| config.pgbouncer | object | `{}` | Additional PgBouncer parameters (e.g. auth_type, pool_mode). |
4747
| config.userlist | object | `{}` | if existingUserlistSecret isn't used. |
48+
| config.users | object | `{}` | Mapping of usernames to connection parameters. E.g.: someUser = pool_mode=session |
4849
| extraContainers | list | `[]` | Extra containers to run within the PgBouncer pod. |
4950
| extraEnvs | list | `[]` | Additional environment variables to set in the PgBouncer container. |
5051
| extraInitContainers | list | `[]` | Init containers to run before the PgBouncer container starts. |

charts/pgbouncer/templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ data:
99
[databases]
1010
{{- range $key, $val := .Values.config.databases }}
1111
{{ $key }} ={{ range $k, $v := $val }} {{ $k }}={{ $v }}{{ end }}
12+
{{- end }}
13+
[users]
14+
{{- range $key, $val := .Values.config.users }}
15+
{{ $key }} ={{ range $k, $v := $val }} {{ $k }}={{ $v }}{{ end }}
1216
{{- end }}
1317
[pgbouncer]
1418
listen_addr = *

charts/pgbouncer/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,12 @@ config:
165165
# -- Password for the authUser above, if used.
166166
authPassword:
167167

168-
# -- Mapping of database names to connection parameters. E.g.: mydb: host=postgresql port=5432
168+
# -- Mapping of database names to connection parameters. E.g.: mydb = host=postgresql port=5432
169169
databases: {}
170170

171+
# -- Mapping of usernames to connection parameters. E.g.: someUser = pool_mode=session
172+
users: {}
173+
171174
# -- Additional PgBouncer parameters (e.g. auth_type, pool_mode).
172175
pgbouncer: {}
173176
# auth_type: md5

0 commit comments

Comments
 (0)