From 9ca1787e7ec19d29d9bea518e365f2bb226e1873 Mon Sep 17 00:00:00 2001 From: LazyDBA247-Anyvision Date: Wed, 13 Jan 2021 22:17:34 +0200 Subject: [PATCH] s3 allowEmptyFolder enable setting allowEmptyFolder for s3 server --- k8s/seaweedfs/templates/s3-deployment.yaml | 6 ++++-- k8s/seaweedfs/values.yaml | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/k8s/seaweedfs/templates/s3-deployment.yaml b/k8s/seaweedfs/templates/s3-deployment.yaml index 82644bde7..794d4da30 100644 --- a/k8s/seaweedfs/templates/s3-deployment.yaml +++ b/k8s/seaweedfs/templates/s3-deployment.yaml @@ -87,8 +87,10 @@ spec: {{- if .Values.s3.domainName }} -domainName={{ .Values.s3.domainName }} \ {{- end }} - -filer={{ template "seaweedfs.name" . }}-filer:{{ .Values.filer.port }} - {{- if or (.Values.global.enableSecurity) (.Values.s3.extraVolumeMounts) }} + {{- if .Values.s3.allowEmptyFolder }} + -allowEmptyFolder={{ .Values.s3.allowEmptyFolder }} \ + {{- end }} + -filer={{ template "seaweedfs.name" . }}-filer-client:{{ .Values.filer.port }} volumeMounts: {{- if .Values.global.enableSecurity }} - name: security-config diff --git a/k8s/seaweedfs/values.yaml b/k8s/seaweedfs/values.yaml index d2b4b1956..632bbd440 100644 --- a/k8s/seaweedfs/values.yaml +++ b/k8s/seaweedfs/values.yaml @@ -319,6 +319,8 @@ s3: port: 8333 metricsPort: 9327 loggingOverrideLevel: null + #allow empty folders + allowEmptyFolder: true # Suffix of the host name, {bucket}.{domainName} domainName: ""