Skip to content

Commit

Permalink
feat: sourcing envVars from a secret
Browse files Browse the repository at this point in the history
  • Loading branch information
SmaineTF1 committed Sep 17, 2024
1 parent 49f7082 commit e2c4205
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zitadel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zitadel
description: A Helm chart for ZITADEL
type: application
appVersion: v2.61.0
version: 8.4.1
version: 8.5.0
kubeVersion: ">= 1.21.0-0"
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
Expand Down
5 changes: 5 additions & 0 deletions charts/zitadel/templates/debug_replicaset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ spec:
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.envVarsSecret }}
envFrom:
- secretRef:
name: {{ .Values.envVarsSecret }}
{{- end }}
volumeMounts:
- name: zitadel-config-yaml
mountPath: /config
Expand Down
5 changes: 5 additions & 0 deletions charts/zitadel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ spec:
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.envVarsSecret }}
envFrom:
- secretRef:
name: {{ .Values.envVarsSecret }}
{{- end }}
ports:
- containerPort: 8080
name: {{ .Values.service.protocol }}-server
Expand Down
5 changes: 5 additions & 0 deletions charts/zitadel/templates/initjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ spec:
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.envVarsSecret }}
envFrom:
- secretRef:
name: {{ .Values.envVarsSecret }}
{{- end }}
volumeMounts:
- name: zitadel-config-yaml
mountPath: /config
Expand Down
5 changes: 5 additions & 0 deletions charts/zitadel/templates/setupjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ spec:
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.envVarsSecret }}
envFrom:
- secretRef:
name: {{ .Values.envVarsSecret }}
{{- end }}
volumeMounts:
- name: zitadel-config-yaml
mountPath: /config
Expand Down
5 changes: 5 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ env:
# name: postgres-pguser-postgres
# key: host

# Additional environment variables from the given secret name
# Zitadel can be configured using environment variables from a secret.
# Reference: https://zitadel.com/docs/self-hosting/manage/configure#configure-by-environment-variables
envVarsSecret: ""

service:
type: ClusterIP
# If service type is "ClusterIP", this can optionally be set to a fixed IP address.
Expand Down

0 comments on commit e2c4205

Please sign in to comment.