From 86c18342c4f64c4ac5fd2e99c354b83058e844fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Carpintero?= Date: Fri, 15 Mar 2024 10:56:32 +0100 Subject: [PATCH] add startupScript checksum to deployment (#116) --- 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 }}