aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Roby <max@lil-mac.lan>2023-11-23 17:35:07 +0100
committerChris Lu <chrislusf@users.noreply.github.com>2023-11-24 06:40:19 -0800
commit2af6b1380009c834cef42110a8a1719cd3770dc0 (patch)
treec4d73d3977bf5114d8e67dca0397f038add17502
parent7a5d9d8690ec6aeafb12255ad96ecb3904227b7f (diff)
downloadseaweedfs-2af6b1380009c834cef42110a8a1719cd3770dc0.tar.xz
seaweedfs-2af6b1380009c834cef42110a8a1719cd3770dc0.zip
add a sercret volume mount
-rw-r--r--k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
index fe89d7845..a5fc6f81c 100644
--- a/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
+++ b/k8s/charts/seaweedfs/templates/post-install-bucket-hook.yaml
@@ -76,6 +76,17 @@ spec:
{{- if .Values.master.readinessProbe.enabled }}
{{- $hostpath_exists := include "master.hostpath_exists" . -}}
{{- $existing_claims := include "master.existing_claims" . -}}
+ {{- if .Values.filer.s3.enableAuth }}
+ volumes:
+ - name: config-users
+ secret:
+ defaultMode: 420
+ {{- if .Values.filer.s3.existingConfigSecret }}
+ secretName: {{ .Values.filer.s3.existingConfigSecret }}
+ {{- else }}
+ secretName: seaweedfs-s3-secret
+ {{- end }}
+ {{- end }}
{{- end }}
{{- end }}
{{- end }}