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 }}