From 7962de2cc407faf57641b86ba268354593edfcdd Mon Sep 17 00:00:00 2001 From: Olivier Charuel Date: Wed, 31 Jan 2024 12:26:59 +0100 Subject: [PATCH] feat(pgbouncer): support deployment annotations --- charts/pgbouncer/Chart.yaml | 2 +- charts/pgbouncer/README.md | 1 + charts/pgbouncer/templates/deployment.yaml | 4 ++++ charts/pgbouncer/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/pgbouncer/Chart.yaml b/charts/pgbouncer/Chart.yaml index 2625292..9b11fe8 100644 --- a/charts/pgbouncer/Chart.yaml +++ b/charts/pgbouncer/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: pgbouncer -version: "0.4.0" +version: "0.5.0" description: A Helm chart for Pgbouncer type: application home: https://github.com/pmint93/helm-charts diff --git a/charts/pgbouncer/README.md b/charts/pgbouncer/README.md index 868a526..0ae3bf7 100644 --- a/charts/pgbouncer/README.md +++ b/charts/pgbouncer/README.md @@ -60,6 +60,7 @@ The following table lists the configurable parameters of the chart and their def | imagePullSecrets | list | `[]` | Container image pull secrets | | nameOverride | string | `""` | Override the name of release | | fullnameOverride | string | `""` | Override the fullname of release | +| deploymentAnnotations | object | `{}` | Deployment's annotations | | podAnnotations | object | `{}` | Pod's annotations | | podSecurityContext | object | `{}` | Security context settings for the pod | | securityContext | object | `{}` | Security context settings for the container | diff --git a/charts/pgbouncer/templates/deployment.yaml b/charts/pgbouncer/templates/deployment.yaml index e269696..25b574c 100644 --- a/charts/pgbouncer/templates/deployment.yaml +++ b/charts/pgbouncer/templates/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "pgbouncer.fullname" . }} labels: {{- include "pgbouncer.labels" . | nindent 4 }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/pgbouncer/values.yaml b/charts/pgbouncer/values.yaml index 33250c2..de7b53f 100644 --- a/charts/pgbouncer/values.yaml +++ b/charts/pgbouncer/values.yaml @@ -52,6 +52,8 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +deploymentAnnotations: {} + podAnnotations: {} podSecurityContext: {}