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
Fix/s3 config secret (#5302)
spastorclovr3b5d8ffb70f4
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yamlindex 097a63cd3d..c62ec45dc9 100644--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml@@ -286,7 +286,7 @@ spec:- name: db-schema-config-volumeconfigMap:name: seaweedfs-db-init-config- {{- if .Values.filer.s3.enableAuth }}+ {{- if and .Values.filer.s3.enabled .Values.filer.s3.enableAuth }}- name: config-userssecret:defaultMode: 420diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yamlindex 45b0d394bd..0b04f6381c 100644--- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml+++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml@@ -191,7 +191,7 @@ spec:- name: config-userssecret:defaultMode: 420- {{- if .Values.filer.s3.existingConfigSecret }}+ {{- if .Values.s3.existingConfigSecret }}secretName: {{ .Values.s3.existingConfigSecret }}{{- else }}secretName: seaweedfs-s3-secretdiff --git a/k8s/charts/seaweedfs/templates/s3-secret.yaml b/k8s/charts/seaweedfs/templates/s3-secret.yamlindex 09e81adbff..969b31f521 100644--- a/k8s/charts/seaweedfs/templates/s3-secret.yaml+++ b/k8s/charts/seaweedfs/templates/s3-secret.yaml@@ -1,4 +1,4 @@-{{- if not (or .Values.filer.s3.skipAuthSecretCreation .Values.s3.skipAuthSecretCreation .Values.filer.s3.existingConfigSecret .Values.s3.existingConfigSecret ) }}+{{- if or (and .Values.filer.s3.enabled .Values.filer.s3.enableAuth (not .Values.filer.s3.existingConfigSecret)) (and .Values.s3.enabled .Values.s3.enableAuth (not .Values.s3.existingConfigSecret)) }}{{- $access_key_admin := randAlphaNum 16 -}}{{- $secret_key_admin := randAlphaNum 32 -}}{{- $access_key_read := randAlphaNum 16 -}}diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 61393e8e7b..527db2315b 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -610,7 +610,7 @@ filer:# key: passwords3:- enabled: true+ enabled: falseport: 8333# add additional https porthttpsPort: 0@@ -619,11 +619,10 @@ filer:# Suffix of the host name, {bucket}.{domainName}domainName: ""# enable user & permission to s3 (need to inject to all services)- enableAuth: true- skipAuthSecretCreation: false+ enableAuth: false# set to the name of an existing kubernetes Secret with the s3 json config file# should have a secret key called seaweedfs_s3_config with an inline json configure- existingConfigSecret: ""+ existingConfigSecret: nullauditLogConfig: {}# You may specify buckets to be created during the install process.# Buckets may be exposed publicly by setting `anonymousRead` to `true`@@ -650,10 +649,9 @@ s3:allowEmptyFolder: true# enable user & permission to s3 (need to inject to all services)enableAuth: false- skipAuthSecretCreation: false# set to the name of an existing kubernetes Secret with the s3 json config file# should have a secret key called seaweedfs_s3_config with an inline json config- existingConfigSecret: false+ existingConfigSecret: nullauditLogConfig: {}# Suffix of the host name, {bucket}.{domainName}