Skip to content

Commit

Permalink
add startupScript checksum to deployment (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusfcr authored Mar 15, 2024
1 parent 4d38d89 commit 86c1834
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion charts/localstack/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 86c1834

Please sign in to comment.