From b8f60e7ccaf1136ea1088f01e88a89c759141cc9 Mon Sep 17 00:00:00 2001 From: xBlaz3kx Date: Mon, 3 Aug 2026 23:41:10 +0200 Subject: [PATCH] feat: roll open-ev-data api pods when the fetch-dataset ConfigMap changes --- charts/open-ev-data/templates/api-deployment.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/open-ev-data/templates/api-deployment.yaml b/charts/open-ev-data/templates/api-deployment.yaml index 4befe49..897fdd9 100644 --- a/charts/open-ev-data/templates/api-deployment.yaml +++ b/charts/open-ev-data/templates/api-deployment.yaml @@ -16,10 +16,16 @@ spec: metadata: labels: {{- include "api.selectorLabels" . | nindent 8 }} - {{- with .Values.api.podAnnotations }} annotations: + # Forces a rollout whenever the rendered fetch-dataset ConfigMap + # changes, even if nothing else in the pod spec did (e.g. a chart + # upgrade that only touches api-configmap.yaml's fetch.sh) — plain + # env var changes already trigger a rollout on their own since + # they're inlined into this pod spec directly. + checksum/config: {{ include (print $.Template.BasePath "/api-configmap.yaml") . | sha256sum }} + {{- with .Values.api.podAnnotations }} {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} spec: serviceAccountName: {{ include "api.serviceAccountName" . }} {{- with .Values.api.imagePullSecrets }}