Skip to content

Commit 68cc3e3

Browse files
authored
feat: support extraVolumes and extraVolumeMounts (zitadel#205)
Add extraVolumes and extraVolumeMounts; closes zitadel#127
1 parent 262325f commit 68cc3e3

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

charts/zitadel/Chart.yaml

Lines changed: 1 addition & 1 deletion
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.51.3"
6-
version: 7.14.0
6+
version: 7.15.0
77
kubeVersion: ">= 1.21.0-0"
88
icon: https://zitadel.com/zitadel-logo-dark.svg
99
maintainers:

charts/zitadel/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ spec:
160160
- name: tls
161161
mountPath: /etc/tls
162162
{{- end }}
163+
{{- with .Values.extraVolumeMounts }}
164+
{{- toYaml . | nindent 10 }}
165+
{{- end }}
163166
resources:
164167
{{- toYaml .Values.resources | nindent 14 }}
165168
initContainers:
@@ -268,6 +271,9 @@ spec:
268271
- name: tls
269272
emptyDir: {}
270273
{{- end }}
274+
{{- with .Values.extraVolumes }}
275+
{{- toYaml . | nindent 6 }}
276+
{{- end }}
271277
{{- with .Values.nodeSelector }}
272278
nodeSelector:
273279
{{- toYaml . | nindent 8 }}

charts/zitadel/templates/initjob.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ spec:
9494
mountPath: /config
9595
- name: chowned-secrets
9696
mountPath: /.secrets
97+
{{- with .Values.extraVolumeMounts }}
98+
{{- toYaml . | nindent 10 }}
99+
{{- end }}
97100
resources:
98101
{{- toYaml .Values.initJob.resources | nindent 14 }}
99102
{{- if .Values.initJob.extraContainers }}
@@ -178,6 +181,9 @@ spec:
178181
{{- end }}
179182
- name: chowned-secrets
180183
emptyDir: {}
184+
{{- with .Values.extraVolumes }}
185+
{{- toYaml . | nindent 6 }}
186+
{{- end }}
181187
{{- with .Values.nodeSelector }}
182188
nodeSelector:
183189
{{- toYaml . | nindent 8 }}

charts/zitadel/templates/setupjob.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ spec:
101101
- name: machinekey
102102
mountPath: "/machinekey"
103103
{{- end}}
104+
{{- with .Values.extraVolumeMounts }}
105+
{{- toYaml . | nindent 10 }}
106+
{{- end }}
104107
resources:
105108
{{- toYaml .Values.setupJob.resources | nindent 12 }}
106109
{{- if include "deepCheck" (dict "root" .Values "path" (splitList "." "zitadel.configmapConfig.FirstInstance.Org.Machine")) }}
@@ -200,6 +203,9 @@ spec:
200203
{{- end }}
201204
- name: chowned-secrets
202205
emptyDir: {}
206+
{{- with .Values.extraVolumes }}
207+
{{- toYaml . | nindent 6 }}
208+
{{- end }}
203209
{{- with .Values.nodeSelector }}
204210
nodeSelector:
205211
{{- toYaml . | nindent 8 }}

charts/zitadel/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,15 @@ pdb:
235235
minAvailable: 1
236236
# maxUnavailable: 1
237237
annotations: {}
238+
239+
extraVolumes: []
240+
# - name: ca-certs
241+
# secret:
242+
# defaultMode: 420
243+
# secretName: ca-certs
244+
245+
extraVolumeMounts: []
246+
# - name: ca-certs
247+
# mountPath: /etc/ssl/certs/myca.pem
248+
# subPath: myca.pem
249+
# readOnly: true

0 commit comments

Comments
 (0)