Skip to content

Commit 060a916

Browse files
committed
Merge branch 'allow-sharing-process-namespace-for-pgbouncer'
2 parents 098ecc9 + 7d1207e commit 060a916

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-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: 4.0.0
5+
version: 4.0.1
66
appVersion: 1.24.1
77
kubeVersion: ">= 1.31.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
@@ -43,7 +43,7 @@ The following table lists the configurable parameters of the PgBouncer chart and
4343
| 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. |
46-
| config.pgbouncer | object | `{}` | Additional PgBouncer parameters (e.g. auth_type, pool_mode). |
46+
| config.pgbouncer | object | `{"ignore_startup_parameters":"extra_float_digits"}` | Additional PgBouncer parameters (e.g. auth_type, pool_mode). |
4747
| config.userlist | object | `{}` | if existingUserlistSecret isn't used. |
4848
| config.users | object | `{}` | Mapping of usernames to connection parameters. E.g.: someUser = pool_mode=session |
4949
| extraContainers | list | `[]` | Extra containers to run within the PgBouncer pod. |
@@ -96,6 +96,7 @@ The following table lists the configurable parameters of the PgBouncer chart and
9696
| service.type | string | `"ClusterIP"` | Service type (e.g. ClusterIP, NodePort, LoadBalancer). |
9797
| serviceAccount.annotations | object | `{}` | Annotations for the created ServiceAccount. |
9898
| serviceAccount.name | string | `""` | Creates a new ServiceAccount if this is empty. |
99+
| shareProcessNamespace | bool | `false` | Allow containers in the pod to share the same process namespace. |
99100
| terminationGracePeriodSeconds | int | `30` | Time (in seconds) to allow graceful shutdown before force-terminating the container. |
100101
| tolerations | list | `[]` | See Kubernetes docs on taints and tolerations. |
101102
| updateStrategy | object | `{}` | The update strategy to apply to the Deployment (e.g. Recreate or RollingUpdate). |

charts/pgbouncer/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This chart deploys a [PgBouncer](https://www.pgbouncer.org/) instance to your Ku
44

55
## Prerequisites
66

7-
- Kubernetes 1.20+
7+
- Kubernetes 1.31+
88
- Helm 3.10+
99

1010
## Installing the Chart

charts/pgbouncer/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ spec:
7474
{{- if $uniquePullSecrets }}
7575
imagePullSecrets: {{- toYaml $uniquePullSecrets | nindent 6 }}
7676
{{- end }}
77+
{{- if .Values.shareProcessNamespace }}
78+
shareProcessNamespace: true
79+
{{- end }}
7780
{{ if .Values.extraInitContainers -}}
7881
initContainers: {{ toYaml .Values.extraInitContainers | trimSuffix "\n" | nindent 6 }}
7982
{{ end -}}

charts/pgbouncer/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ spec:
8080
imagePullSecrets: {{- toYaml $uniquePullSecrets | nindent 8 }}
8181
{{- end }}
8282

83+
{{- if .Values.shareProcessNamespace }}
84+
shareProcessNamespace: true
85+
{{- end }}
86+
8387
{{ if .Values.extraInitContainers -}}
8488
initContainers: {{ toYaml .Values.extraInitContainers | trimSuffix "\n" | nindent 6 }}
8589
{{ end -}}

charts/pgbouncer/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ config:
188188
userlist: {}
189189
# someUser: secretPassword
190190

191+
# -- Allow containers in the pod to share the same process namespace.
192+
shareProcessNamespace: false
193+
191194
# -- Pod security context for the main PgBouncer container. By default, this forces the container to run without root privileges and with a read-only root filesystem.
192195
securityContext:
193196
allowPrivilegeEscalation: false

0 commit comments

Comments
 (0)