1 Commits
Author SHA1 Message Date
d65039a51e [bitnami/nginx] feat: add checksum annotation for existingServerBlockConfigmap via lookup (#36470)
* feat(nginx): add checksum annotation for existingServerBlockConfigmap

When existingServerBlockConfigmap or existingStreamServerBlockConfigmap
are set, use helm lookup to read the ConfigMap from the cluster and
compute a checksum annotation on the pod template. This triggers a
rolling restart whenever the referenced ConfigMap content changes,
consistent with the behavior already provided for inline serverBlock.

Also fix a copy-paste error: the stream server block checksum condition
was checking existingServerBlockConfigmap instead of
existingStreamServerBlockConfigmap.

Note: lookup returns nil during helm template (offline dry-run), so
the annotation is silently omitted in that case. This is expected
and consistent with how lookup behaves across all Helm charts.

Signed-off-by: Andrea Pilo <apilo@cuebiq.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Andrea Pilo <apilo@cuebiq.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
2026-03-04 10:02:41 +01:00