From 016bb6095a646b3a0c84ed8c9377765707e7fc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Carpintero?= Date: Thu, 14 Mar 2024 15:12:37 +0100 Subject: [PATCH] add startupScript checksum to deployment --- charts/localstack/templates/deployment.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index c5a904d..f6d1860 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -18,10 +18,15 @@ spec: {{- include "localstack.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} + {{- if or .Values.podAnnotations .Values.enableStartupScripts }} annotations: + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.enableStartupScripts }} + checksum/startup: {{ tpl .Values.startupScriptContent . | sha256sum }} + {{- end }} + {{- end }} labels: {{- include "localstack.selectorLabels" . | nindent 8 }} {{- with .Values.podLabels }}