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