From fcd5de9710515c2d945105c2e12f2a674388ddfb Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 5 Mar 2026 10:01:31 -0800 Subject: [PATCH] Fix YAML parse error in post-install-bucket-hook template (#8523) The 'set -o pipefail' line was improperly indented outside the YAML block scalar, causing a parse error when s3.enabled=true and s3.createBuckets were populated. Moved the line to the beginning of the script block with correct indentation (12 spaces). Fixes #8520 Co-authored-by: Claude Haiku 4.5 --- .../seaweedfs/templates/shared/post-install-bucket-hook.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml index e7df272a8..86d1a943c 100644 --- a/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml +++ b/k8s/charts/seaweedfs/templates/shared/post-install-bucket-hook.yaml @@ -92,6 +92,7 @@ spec: - "/bin/sh" - "-ec" - | + set -o pipefail wait_for_service() { local url=$1 local max_attempts=60 # 5 minutes total (5s * 60) @@ -117,8 +118,7 @@ spec: wait_for_service "http://$WEED_CLUSTER_SW_MASTER{{ .Values.master.readinessProbe.httpGet.path }}" wait_for_service "http://$WEED_CLUSTER_SW_FILER{{ .Values.filer.readinessProbe.httpGet.path }}" {{- end }} - set -o pipefail - {{- range $createBuckets }} + {{- range $createBuckets }} {{- $bucketName := .name }} {{- $bucketLock := or .lock .objectLock .withLock }} bucket_list=$(/bin/echo 's3.bucket.list' | /usr/bin/weed shell) || { echo "Error listing s3 buckets"; exit 1; }