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: