From a223d1946fa0ccce59cd421270f630b12beebdaf Mon Sep 17 00:00:00 2001 From: pgvishnuram Date: Thu, 5 Dec 2024 12:48:32 +0530 Subject: [PATCH] add pod annotation, service account annotation changes --- helm/postgresql-operator/templates/deployment.yaml | 2 ++ helm/postgresql-operator/templates/service_account.yaml | 3 ++- helm/postgresql-operator/values.yaml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/helm/postgresql-operator/templates/deployment.yaml b/helm/postgresql-operator/templates/deployment.yaml index fe996f1..6188a5a 100644 --- a/helm/postgresql-operator/templates/deployment.yaml +++ b/helm/postgresql-operator/templates/deployment.yaml @@ -15,6 +15,8 @@ spec: labels: app.kubernetes.io/name: {{ include "postgresql-operator.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + annotations: + {{- toYaml .Values.podAnnotations | nindent 8 }} spec: serviceAccountName: {{ include "postgresql-operator.serviceAccountName" . }} {{- with .Values.imagePullSecrets }} diff --git a/helm/postgresql-operator/templates/service_account.yaml b/helm/postgresql-operator/templates/service_account.yaml index fcdf36e..34ddd7f 100644 --- a/helm/postgresql-operator/templates/service_account.yaml +++ b/helm/postgresql-operator/templates/service_account.yaml @@ -5,5 +5,6 @@ metadata: name: {{ template "postgresql-operator.serviceAccountName" . }} labels: {{ include "postgresql-operator.labels" . | indent 4 }} - + annotations: +{{- toYaml .Values.serviceAccount.annotations | nindent 4 }} {{- end }} diff --git a/helm/postgresql-operator/values.yaml b/helm/postgresql-operator/values.yaml index ef6a30b..c015730 100644 --- a/helm/postgresql-operator/values.yaml +++ b/helm/postgresql-operator/values.yaml @@ -9,6 +9,7 @@ rbac: ## Service account name and whether to create it serviceAccount: create: true + annotations: {} name: ## Let it empty to watch all namespaces @@ -77,6 +78,8 @@ tolerations: [] affinity: {} +podAnnotations: {} + grafanaDashboards: enabled: false labels: