From d21a7038a86ae2adf547730b2cb6f455dcd4ce70 Mon Sep 17 00:00:00 2001 From: Richard Chen <58443436+rchenzheng@users.noreply.github.com> Date: Fri, 20 Feb 2026 01:29:55 -0500 Subject: [PATCH] Add checksum to s3 config --- k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml index c3bd78ad8..3a9af7647 100644 --- a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml +++ b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml @@ -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 }}