SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
[helm] Fix liveness/readiness probe scheme path in templates (#7616)
Chris Lu268cc84e8c86
diff --git a/.github/workflows/helm_ci.yml b/.github/workflows/helm_ci.ymlindex f936ff4456..ea971aec1d 100644--- a/.github/workflows/helm_ci.yml+++ b/.github/workflows/helm_ci.yml@@ -44,6 +44,80 @@ jobs:- name: Run chart-testing (lint)run: ct lint --target-branch ${{ github.event.repository.default_branch }} --all --validate-maintainers=false --chart-dirs k8s/charts+ - name: Verify template rendering+ run: |+ set -e+ CHART_DIR="k8s/charts/seaweedfs"++ echo "=== Testing default configuration ==="+ helm template test $CHART_DIR > /tmp/default.yaml+ echo "✓ Default configuration renders successfully"++ echo "=== Testing with S3 enabled ==="+ helm template test $CHART_DIR --set s3.enabled=true > /tmp/s3.yaml+ grep -q "kind: Deployment" /tmp/s3.yaml && grep -q "seaweedfs-s3" /tmp/s3.yaml+ echo "✓ S3 deployment renders correctly"++ echo "=== Testing with all-in-one mode ==="+ helm template test $CHART_DIR --set allInOne.enabled=true > /tmp/allinone.yaml+ grep -q "seaweedfs-all-in-one" /tmp/allinone.yaml+ echo "✓ All-in-one deployment renders correctly"++ echo "=== Testing with security enabled ==="+ helm template test $CHART_DIR --set global.enableSecurity=true > /tmp/security.yaml+ grep -q "security-config" /tmp/security.yaml+ echo "✓ Security configuration renders correctly"++ echo "=== Testing with monitoring enabled ==="+ helm template test $CHART_DIR \+ --set global.monitoring.enabled=true \+ --set global.monitoring.gatewayHost=prometheus \+ --set global.monitoring.gatewayPort=9091 > /tmp/monitoring.yaml+ echo "✓ Monitoring configuration renders correctly"++ echo "=== Testing with PVC storage ==="+ helm template test $CHART_DIR \+ --set master.data.type=persistentVolumeClaim \+ --set master.data.size=10Gi \+ --set master.data.storageClass=standard > /tmp/pvc.yaml+ grep -q "PersistentVolumeClaim" /tmp/pvc.yaml+ echo "✓ PVC configuration renders correctly"++ echo "=== Testing with custom replicas ==="+ helm template test $CHART_DIR \+ --set master.replicas=3 \+ --set filer.replicas=2 \+ --set volume.replicas=3 > /tmp/replicas.yaml+ echo "✓ Custom replicas configuration renders correctly"++ echo "=== Testing filer with S3 gateway ==="+ helm template test $CHART_DIR \+ --set filer.s3.enabled=true \+ --set filer.s3.enableAuth=true > /tmp/filer-s3.yaml+ echo "✓ Filer S3 gateway renders correctly"++ echo "=== Testing SFTP enabled ==="+ helm template test $CHART_DIR --set sftp.enabled=true > /tmp/sftp.yaml+ grep -q "seaweedfs-sftp" /tmp/sftp.yaml+ echo "✓ SFTP deployment renders correctly"++ echo "=== Testing ingress configurations ==="+ helm template test $CHART_DIR \+ --set master.ingress.enabled=true \+ --set filer.ingress.enabled=true \+ --set s3.enabled=true \+ --set s3.ingress.enabled=true > /tmp/ingress.yaml+ grep -q "kind: Ingress" /tmp/ingress.yaml+ echo "✓ Ingress configurations render correctly"++ echo "=== Testing COSI driver ==="+ helm template test $CHART_DIR --set cosi.enabled=true > /tmp/cosi.yaml+ grep -q "seaweedfs-cosi" /tmp/cosi.yaml+ echo "✓ COSI driver renders correctly"++ echo ""+ echo "✅ All template rendering tests passed!"+- name: Create kind clusteruses: helm/[email protected]diff --git a/k8s/charts/seaweedfs/Chart.yaml b/k8s/charts/seaweedfs/Chart.yamlindex 379f67890b..421b85175b 100644--- a/k8s/charts/seaweedfs/Chart.yaml+++ b/k8s/charts/seaweedfs/Chart.yaml@@ -3,4 +3,4 @@ description: SeaweedFSname: seaweedfsappVersion: "4.01"# Dev note: Trigger a helm chart release by `git tag -a helm-<version>`-version: 4.0.401\ No newline at end of file+version: 4.0.401diff --git a/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml b/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yamlindex 8700a8a696..6f176ae197 100644--- a/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml+++ b/k8s/charts/seaweedfs/templates/all-in-one/all-in-one-deployment.yaml@@ -352,7 +352,7 @@ spec:httpGet:path: {{ .Values.allInOne.readinessProbe.httpGet.path }}port: {{ .Values.master.port }}- scheme: {{ .Values.allInOne.readinessProbe.scheme }}+ scheme: {{ .Values.allInOne.readinessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.allInOne.readinessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.allInOne.readinessProbe.periodSeconds }}successThreshold: {{ .Values.allInOne.readinessProbe.successThreshold }}@@ -364,7 +364,7 @@ spec:httpGet:path: {{ .Values.allInOne.livenessProbe.httpGet.path }}port: {{ .Values.master.port }}- scheme: {{ .Values.allInOne.livenessProbe.scheme }}+ scheme: {{ .Values.allInOne.livenessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.allInOne.livenessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.allInOne.livenessProbe.periodSeconds }}successThreshold: {{ .Values.allInOne.livenessProbe.successThreshold }}diff --git a/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yamlindex 5aeccfa026..af82bd5e09 100644--- a/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml@@ -289,7 +289,7 @@ spec:httpGet:path: {{ .Values.filer.readinessProbe.httpGet.path }}port: {{ .Values.filer.port }}- scheme: {{ .Values.filer.readinessProbe.scheme }}+ scheme: {{ .Values.filer.readinessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.filer.readinessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.filer.readinessProbe.periodSeconds }}successThreshold: {{ .Values.filer.readinessProbe.successThreshold }}@@ -301,7 +301,7 @@ spec:httpGet:path: {{ .Values.filer.livenessProbe.httpGet.path }}port: {{ .Values.filer.port }}- scheme: {{ .Values.filer.livenessProbe.scheme }}+ scheme: {{ .Values.filer.livenessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.filer.livenessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.filer.livenessProbe.periodSeconds }}successThreshold: {{ .Values.filer.livenessProbe.successThreshold }}diff --git a/k8s/charts/seaweedfs/templates/master/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master/master-statefulset.yamlindex 704a33b808..a70673454d 100644--- a/k8s/charts/seaweedfs/templates/master/master-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/master/master-statefulset.yaml@@ -235,7 +235,7 @@ spec:httpGet:path: {{ .Values.master.readinessProbe.httpGet.path }}port: {{ .Values.master.port }}- scheme: {{ .Values.master.readinessProbe.scheme }}+ scheme: {{ .Values.master.readinessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.master.readinessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.master.readinessProbe.periodSeconds }}successThreshold: {{ .Values.master.readinessProbe.successThreshold }}@@ -247,7 +247,7 @@ spec:httpGet:path: {{ .Values.master.livenessProbe.httpGet.path }}port: {{ .Values.master.port }}- scheme: {{ .Values.master.livenessProbe.scheme }}+ scheme: {{ .Values.master.livenessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.master.livenessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.master.livenessProbe.periodSeconds }}successThreshold: {{ .Values.master.livenessProbe.successThreshold }}diff --git a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yamlindex 0c6d52c3eb..830e1d787b 100644--- a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml+++ b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml@@ -204,7 +204,7 @@ spec:httpGet:path: {{ .Values.s3.readinessProbe.httpGet.path }}port: {{ .Values.s3.port }}- scheme: {{ .Values.s3.readinessProbe.scheme }}+ scheme: {{ .Values.s3.readinessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.s3.readinessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.s3.readinessProbe.periodSeconds }}successThreshold: {{ .Values.s3.readinessProbe.successThreshold }}@@ -216,7 +216,7 @@ spec:httpGet:path: {{ .Values.s3.livenessProbe.httpGet.path }}port: {{ .Values.s3.port }}- scheme: {{ .Values.s3.livenessProbe.scheme }}+ scheme: {{ .Values.s3.livenessProbe.httpGet.scheme }}initialDelaySeconds: {{ .Values.s3.livenessProbe.initialDelaySeconds }}periodSeconds: {{ .Values.s3.livenessProbe.periodSeconds }}successThreshold: {{ .Values.s3.livenessProbe.successThreshold }}diff --git a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yamlindex 29a035a2ba..1a8964a554 100644--- a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml@@ -251,7 +251,7 @@ spec:httpGet:path: {{ $volume.readinessProbe.httpGet.path }}port: {{ $volume.port }}- scheme: {{ $volume.readinessProbe.scheme }}+ scheme: {{ $volume.readinessProbe.httpGet.scheme }}initialDelaySeconds: {{ $volume.readinessProbe.initialDelaySeconds }}periodSeconds: {{ $volume.readinessProbe.periodSeconds }}successThreshold: {{ $volume.readinessProbe.successThreshold }}@@ -263,7 +263,7 @@ spec:httpGet:path: {{ $volume.livenessProbe.httpGet.path }}port: {{ $volume.port }}- scheme: {{ $volume.livenessProbe.scheme }}+ scheme: {{ $volume.livenessProbe.httpGet.scheme }}initialDelaySeconds: {{ $volume.livenessProbe.initialDelaySeconds }}periodSeconds: {{ $volume.livenessProbe.periodSeconds }}successThreshold: {{ $volume.livenessProbe.successThreshold }}diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 547b054797..520323dce7 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -1133,7 +1133,7 @@ allInOne:httpGet:path: /cluster/statusport: 9333- scheme: HTTP+ scheme: HTTPinitialDelaySeconds: 10periodSeconds: 15successThreshold: 1@@ -1145,7 +1145,7 @@ allInOne:httpGet:path: /cluster/statusport: 9333- scheme: HTTP+ scheme: HTTPinitialDelaySeconds: 20periodSeconds: 30successThreshold: 1