From e4e35badfeac9842c69d02d9363740676fd30180 Mon Sep 17 00:00:00 2001 From: Eli Mayost Date: Mon, 13 Apr 2026 16:11:06 +0200 Subject: [PATCH] feat: support tpl evaluation in podAnnotations Signed-off-by: Eli Mayost --- charts/fluentd/CHANGELOG.md | 1 + charts/fluentd/templates/daemonset.yaml | 4 ++-- charts/fluentd/values.yaml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/fluentd/CHANGELOG.md b/charts/fluentd/CHANGELOG.md index 66f788e4..2e7b9a4f 100644 --- a/charts/fluentd/CHANGELOG.md +++ b/charts/fluentd/CHANGELOG.md @@ -16,6 +16,7 @@ ### Added +- Support `tpl` evaluation in `podAnnotations` to allow dynamic checksums from parent charts. ([#709](https://github.com/fluent/helm-charts/pull/709)) @elimayost - Add `variantVersion` value to specify the version of the variant to use. ([#720](https://github.com/fluent/helm-charts/pull/720)) @stevehipwell ### Changed diff --git a/charts/fluentd/templates/daemonset.yaml b/charts/fluentd/templates/daemonset.yaml index 1fb6f761..dc3d9308 100644 --- a/charts/fluentd/templates/daemonset.yaml +++ b/charts/fluentd/templates/daemonset.yaml @@ -27,8 +27,8 @@ spec: metadata: annotations: checksum/config: {{ include (print $.Template.BasePath "/fluentd-configurations-cm.yaml") . | sha256sum }} - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} + {{- range $k, $v := .Values.podAnnotations }} + {{ printf "%s: %s" $k ((tpl $v $) | quote) }} {{- end }} labels: {{- include "fluentd.selectorLabels" . | nindent 8 }} diff --git a/charts/fluentd/values.yaml b/charts/fluentd/values.yaml index 2026c242..16790abb 100644 --- a/charts/fluentd/values.yaml +++ b/charts/fluentd/values.yaml @@ -140,7 +140,7 @@ annotations: {} ## labels: {} -## Annotations to be added to fluentd pods +## Annotations to be added to fluentd pods. Supports tpl evaluation. ## podAnnotations: {}