diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml index 5ac84bdf7..304d746d8 100644 --- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml @@ -209,7 +209,7 @@ spec: -s3.cert.file=/usr/local/share/ca-certificates/client/tls.crt \ -s3.key.file=/usr/local/share/ca-certificates/client/tls.key \ {{- end }} - {{- if .Values.filer.s3.allowEmptyFolder }} + {{- if eq (typeOf .Values.filer.s3.allowEmptyFolder) "bool" }} -s3.allowEmptyFolder={{ .Values.filer.s3.allowEmptyFolder }} \ {{- end }} {{- if .Values.filer.s3.enableAuth }} diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yaml index 1c989c3fb..3b29e2b42 100644 --- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml +++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml @@ -134,7 +134,7 @@ spec: {{- if .Values.s3.domainName }} -domainName={{ .Values.s3.domainName }} \ {{- end }} - {{- if .Values.s3.allowEmptyFolder }} + {{- if eq (typeOf .Values.s3.allowEmptyFolder) "bool" }} -allowEmptyFolder={{ .Values.s3.allowEmptyFolder }} \ {{- end }} {{- if .Values.s3.enableAuth }}