diff options
| author | Matt <washcycle@users.noreply.github.com> | 2023-03-07 15:18:41 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-07 13:18:41 -0800 |
| commit | 889ecf5c9d14be3ef360fef9ee8542e167b97265 (patch) | |
| tree | 7c77a0799fd00be7512c87aa7aa7f20dcc90f81a | |
| parent | 0cf4f2e89131b86acc550fbbda05fdadc7ccc287 (diff) | |
| download | seaweedfs-889ecf5c9d14be3ef360fef9ee8542e167b97265.tar.xz seaweedfs-889ecf5c9d14be3ef360fef9ee8542e167b97265.zip | |
added secret envs to filer (#4284)
| -rw-r--r-- | k8s/charts/seaweedfs/templates/filer-statefulset.yaml | 6 | ||||
| -rw-r--r-- | k8s/charts/seaweedfs/values.yaml | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml index 4b616fde1..b7227f934 100644 --- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml @@ -97,6 +97,12 @@ spec: value: {{ $value | quote }} {{- end }} {{- end }} + {{- if .Values.filer.secretExtraEnvironmentVars }} + {{- range $key, $value := .Values.filer.secretExtraEnvironmentVars }} + - name: {{ $key }} + valueFrom: {{ toYaml $value | nindent 16 }} + {{- end }} + {{- end }} command: - "/bin/sh" - "-ec" diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index 520a00307..1e2801e42 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -407,6 +407,18 @@ filer: # directories under this folder will be automatically creating a separate bucket WEED_FILER_BUCKETS_FOLDER: "/buckets" + + # secret env variables + secretExtraEnvironmentVars: [] + # WEED_POSTGRES_USERNAME: + # secretKeyRef: + # name: postgres-credentials + # key: username + # WEED_POSTGRES_PASSWORD: + # secretKeyRef: + # name: postgres-credentials + # key: password + s3: enabled: true port: 8333 |
