From 54de3f9a2ac58cd1bc4349dc90d2ce6a22153497 Mon Sep 17 00:00:00 2001 From: sangheee Date: Thu, 9 Nov 2023 17:53:26 +0900 Subject: [PATCH] Use the 'tpl' function for podAnnotations Signed-off-by: sangheee --- charts/fluent-bit/templates/daemonset.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/fluent-bit/templates/daemonset.yaml b/charts/fluent-bit/templates/daemonset.yaml index 12570954..bb665e2a 100644 --- a/charts/fluent-bit/templates/daemonset.yaml +++ b/charts/fluent-bit/templates/daemonset.yaml @@ -39,8 +39,8 @@ spec: checksum/luascripts: {{ include (print $.Template.BasePath "/configmap-luascripts.yaml") . | sha256sum }} {{- end }} {{- end }} - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} + {{- range $key,$value := .Values.podAnnotations }} + {{ tpl $key $ }}: {{ tpl $value $ }} {{- end }} {{- end }} spec: