Skip to content

Commit 6fdeba6

Browse files
authored
Add support for service annotations (#23)
1 parent 12241da commit 6fdeba6

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
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: 2.7.0
5+
version: 2.8.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The following table lists the configurable parameters of the PgBouncer chart and
8383
| revisionHistoryLimit | int | `10` | How many old ReplicaSets to retain for rollbacks. |
8484
| runtimeClassName | string | `""` | Runtime class for the PgBouncer pods (e.g. gvisor). |
8585
| securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":70,"runAsNonRoot":true,"runAsUser":70}` | 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. |
86+
| service.annotations | object | `{}` | Annotations for the Service. |
8687
| service.internalTrafficPolicy | string | `"Cluster"` | Internal traffic policy for the Service (Cluster or Local). |
8788
| service.port | int | `5432` | The service port for PgBouncer. |
8889
| service.type | string | `"ClusterIP"` | Service type (e.g. ClusterIP, NodePort, LoadBalancer). |

charts/pgbouncer/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
name: {{ template "pgbouncer.fullname" . }}
55
labels:
66
{{- include "pgbouncer.labels" . | nindent 4 }}
7+
{{- with .Values.service.annotations }}
8+
annotations:
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
711
spec:
812
type: {{ .Values.service.type }}
913
internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy | default "Cluster" }}

charts/pgbouncer/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ image:
5050
# - "/etc/config.yaml"
5151

5252
service:
53+
# -- Annotations for the Service.
54+
annotations: {}
5355
# -- Service type (e.g. ClusterIP, NodePort, LoadBalancer).
5456
type: ClusterIP
5557
# -- The service port for PgBouncer.

0 commit comments

Comments
 (0)