Browse Source
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.
pull/4550/head
Andrew Garrett
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
k8s/charts/seaweedfs/templates/filer-statefulset.yaml
|
|
@ -88,7 +88,12 @@ spec: |
|
|
{{- if .Values.filer.extraEnvironmentVars }} |
|
|
{{- if .Values.filer.extraEnvironmentVars }} |
|
|
{{- range $key, $value := .Values.filer.extraEnvironmentVars }} |
|
|
{{- range $key, $value := .Values.filer.extraEnvironmentVars }} |
|
|
- name: {{ $key }} |
|
|
- name: {{ $key }} |
|
|
|
|
|
{{- if kindIs "string" $value }} |
|
|
value: {{ $value | quote }} |
|
|
value: {{ $value | quote }} |
|
|
|
|
|
{{- else }} |
|
|
|
|
|
valueFrom: |
|
|
|
|
|
{{ toYaml $value | nindent 16 | trim }} |
|
|
|
|
|
{{- end -}} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- if .Values.global.extraEnvironmentVars }} |
|
|
{{- if .Values.global.extraEnvironmentVars }} |
|
|
|