From 6375f09758d4d38cef4f9dff662080a47141b7c3 Mon Sep 17 00:00:00 2001 From: gwang Date: Wed, 6 Mar 2024 15:41:36 -0500 Subject: [PATCH] adding [annotations] directly to the top [metadata] section of the deployment yaml template --- .../yet-another-cloudwatch-exporter/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml b/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml index 8718828..1b03555 100644 --- a/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml +++ b/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml @@ -5,6 +5,10 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "yet-another-cloudwatch-exporter.labels" . | nindent 4 }} + annotations: + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: