Skip to content

Commit 034c5fe

Browse files
committed
env map value
1 parent b6ae16e commit 034c5fe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

kubernetes/chart/zulip/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,17 @@ are defined in the `values.yaml` under `zulip.environment`. These environment
143143
variables are forwarded to the Docker container, you can read more about
144144
configuring Zulip through environment variables
145145
[here](https://github.com/zulip/docker-zulip/#configuration).
146+
Variables can be either a plain scalar value ie. string/int or a projected value
147+
from a secret or configmap, eg:
148+
149+
```yaml
150+
SETTING_EXTERNAL_HOST: zulip.example.com
151+
SECRETS_email_password:
152+
valueFrom:
153+
secretKeyRef:
154+
name: email
155+
key: password
156+
```
146157
147158
### Dependencies
148159

kubernetes/chart/zulip/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ include all env variables for Zulip pods
9090
value: "{{ .Values.zulip.password }}"
9191
{{- range $key, $value := .Values.zulip.environment }}
9292
- name: {{ $key }}
93+
{{- if kindIs "map" $value }}
94+
{{- toYaml $value | nindent 2 }}
95+
{{- else }}
9396
value: {{ $value | quote }}
97+
{{- end }}
9498
{{- end }}
9599
{{- end }}

0 commit comments

Comments
 (0)