From 16e2b830e524fc4f8e11134c87560675ea96fd58 Mon Sep 17 00:00:00 2001 From: Arihant Sethia Date: Sat, 16 Mar 2024 02:04:38 -0700 Subject: [PATCH] Enable custom pod annotations --- helm-chart/templates/deployment.yaml | 3 +++ helm-chart/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/helm-chart/templates/deployment.yaml b/helm-chart/templates/deployment.yaml index b79480c..f3cc274 100644 --- a/helm-chart/templates/deployment.yaml +++ b/helm-chart/templates/deployment.yaml @@ -17,6 +17,9 @@ spec: prometheus.io/job: {{ $.Chart.Name }} prometheus.io/scrape: 'true' prometheus.io/port: '9090' + {{- with $.Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 5c89916..3fe1f64 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -93,3 +93,5 @@ nodeSelector: {} tolerations: [] affinity: {} + +podAnnotations: {}