From 88e9e2c471bf8115ec45f60351eca06701bc9d9f Mon Sep 17 00:00:00 2001 From: Nicholas Boyd Isacsson Date: Fri, 9 Jan 2026 21:10:40 +0100 Subject: [PATCH] fix: Invalid volume mount conditional in filer template (#7992) There is a mistmatch in the conditionals for the definition and mounting of the `config-users` volume in the filer's template. Volume definition: ``` {{- if and .Values.filer.s3.enabled .Values.filer.s3.enableAuth }} ``` Mount: ``` {{- if .Values.filer.s3.enableAuth }} ``` This leads to an invalid specification in the case where s3 is disabled but the enableAuth value is set to true, as it tries to mount in an undefined volume. I've fixed it here by adding the extra check to the latter conditional. --- k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml index 29665caae..b7df27158 100644 --- a/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer/filer-statefulset.yaml @@ -229,7 +229,7 @@ spec: - name: seaweedfs-filer-log-volume mountPath: "/logs/" {{- end }} - {{- if .Values.filer.s3.enableAuth }} + {{- if and .Values.filer.s3.enabled .Values.filer.s3.enableAuth }} - name: config-users mountPath: /etc/sw readOnly: true