Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support env vars from an existing secret #482

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
support env vars from an existing secret
  • Loading branch information
aogier committed Dec 28, 2024
commit 27581e645a1925b1911b51edb2878efb51496488
5 changes: 5 additions & 0 deletions kubernetes/chart/zulip/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ spec:
mountPath: /data/post-setup.d
env:
{{ include "zulip.env" . | nindent 12 }}
{{- if .Values.zulip.secretEnvironment }}
envFrom:
- secretRef:
name: {{ .Values.zulip.secretEnvironment }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.livenessProbe.enabled }}
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/chart/zulip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ zulip:
SETTING_EMAIL_USE_SSL: "False"
SETTING_EMAIL_USE_TLS: "True"
ZULIP_AUTH_BACKENDS: "EmailAuthBackend"
## An existing secret from which populate environment variablgwes.
secretEnvironment: ""
## If `persistence.existingClaim` is not set, a PVC (Persistent
## Volume Claim) is generated with these specifications.
persistence:
Expand Down