Skip to content

Commit 64d2226

Browse files
SmanaSmaineTF1
andauthored
feat: sourcing envVars from a secret (#261)
Co-authored-by: Smaine Kahlouch <[email protected]>
1 parent 49f7082 commit 64d2226

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

charts/zitadel/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: zitadel
33
description: A Helm chart for ZITADEL
44
type: application
55
appVersion: v2.61.0
6-
version: 8.4.1
6+
version: 8.5.0
77
kubeVersion: ">= 1.21.0-0"
88
icon: https://zitadel.com/zitadel-logo-dark.svg
99
maintainers:

charts/zitadel/templates/debug_replicaset.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ spec:
6060
{{- with .Values.env }}
6161
{{- toYaml . | nindent 12 }}
6262
{{- end }}
63+
{{- if .Values.envVarsSecret }}
64+
envFrom:
65+
- secretRef:
66+
name: {{ .Values.envVarsSecret }}
67+
{{- end }}
6368
volumeMounts:
6469
- name: zitadel-config-yaml
6570
mountPath: /config

charts/zitadel/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ spec:
9494
{{- with .Values.env }}
9595
{{- toYaml . | nindent 12 }}
9696
{{- end }}
97+
{{- if .Values.envVarsSecret }}
98+
envFrom:
99+
- secretRef:
100+
name: {{ .Values.envVarsSecret }}
101+
{{- end }}
97102
ports:
98103
- containerPort: 8080
99104
name: {{ .Values.service.protocol }}-server

charts/zitadel/templates/initjob.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ spec:
8888
{{- with .Values.env }}
8989
{{- toYaml . | nindent 12 }}
9090
{{- end }}
91+
{{- if .Values.envVarsSecret }}
92+
envFrom:
93+
- secretRef:
94+
name: {{ .Values.envVarsSecret }}
95+
{{- end }}
9196
volumeMounts:
9297
- name: zitadel-config-yaml
9398
mountPath: /config

charts/zitadel/templates/setupjob.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ spec:
9292
{{- with .Values.env }}
9393
{{- toYaml . | nindent 12 }}
9494
{{- end }}
95+
{{- if .Values.envVarsSecret }}
96+
envFrom:
97+
- secretRef:
98+
name: {{ .Values.envVarsSecret }}
99+
{{- end }}
95100
volumeMounts:
96101
- name: zitadel-config-yaml
97102
mountPath: /config

charts/zitadel/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ env:
132132
# name: postgres-pguser-postgres
133133
# key: host
134134

135+
# Additional environment variables from the given secret name
136+
# Zitadel can be configured using environment variables from a secret.
137+
# Reference: https://zitadel.com/docs/self-hosting/manage/configure#configure-by-environment-variables
138+
envVarsSecret: ""
139+
135140
service:
136141
type: ClusterIP
137142
# If service type is "ClusterIP", this can optionally be set to a fixed IP address.

0 commit comments

Comments
 (0)