From ff81b32fe01426684e14de3cc4acacf938670322 Mon Sep 17 00:00:00 2001 From: Nicanor Gutierrez Date: Mon, 15 Jan 2024 14:15:37 +0000 Subject: [PATCH] Add annotations to operator deployment --- charts/ext-postgres-operator/templates/operator.yaml | 4 ++++ charts/ext-postgres-operator/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/ext-postgres-operator/templates/operator.yaml b/charts/ext-postgres-operator/templates/operator.yaml index 2c46ba34..5073bc7b 100644 --- a/charts/ext-postgres-operator/templates/operator.yaml +++ b/charts/ext-postgres-operator/templates/operator.yaml @@ -5,6 +5,10 @@ metadata: labels: {{- include "chart.labels" . | nindent 4 }} namespace: {{ .Release.Namespace }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/ext-postgres-operator/values.yaml b/charts/ext-postgres-operator/values.yaml index 026bcc07..90f9ff0c 100644 --- a/charts/ext-postgres-operator/values.yaml +++ b/charts/ext-postgres-operator/values.yaml @@ -22,6 +22,8 @@ serviceAccount: # If not set and create is true, a name is generated using the fullname template name: "" +deploymentAnnotations: {} + podAnnotations: {} # Additionnal labels to add to the pod.