aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Garrett <andrewgarrett@google.com>2023-06-06 05:37:54 +1000
committerGitHub <noreply@github.com>2023-06-05 12:37:54 -0700
commit65b4dc6448f6f17ba2696be5301d62c699f4413f (patch)
tree54b9ebc97d4695a8813ffab8ac458d89776572b4
parent19fd0f7d5b024cca540425d2ef762b70dec2ffc3 (diff)
downloadseaweedfs-65b4dc6448f6f17ba2696be5301d62c699f4413f.tar.xz
seaweedfs-65b4dc6448f6f17ba2696be5301d62c699f4413f.zip
Add secret support for filer environment variables. (#4538)
Instead of providing a literal value as a string, you can provide the contents of valueFrom as a map.
-rw-r--r--k8s/charts/seaweedfs/templates/filer-statefulset.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index f6a6d1940..d472569cc 100644
--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
@@ -88,7 +88,12 @@ spec:
{{- if .Values.filer.extraEnvironmentVars }}
{{- range $key, $value := .Values.filer.extraEnvironmentVars }}
- name: {{ $key }}
+ {{- if kindIs "string" $value }}
value: {{ $value | quote }}
+ {{- else }}
+ valueFrom:
+ {{ toYaml $value | nindent 16 | trim }}
+ {{- end -}}
{{- end }}
{{- end }}
{{- if .Values.global.extraEnvironmentVars }}