Add checksum to s3 config

This commit is contained in:
Richard Chen
2026-02-20 01:29:55 -05:00
parent df55e2efbb
commit d21a7038a8
@@ -35,6 +35,12 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
{{- if .Values.s3.existingConfigSecret }}
{{- $configSecret := (lookup "v1" "Secret" .Release.Namespace .Values.s3.existingConfigSecret) | default dict }}
checksum/s3config: {{ $configSecret | toYaml | sha256sum }}
{{- else }}
checksum/s3config: {{ include (print .Template.BasePath "/s3/s3-secret.yaml") . | sha256sum }}
{{- end }}
{{ with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}