Skip to content

Commit a65978c

Browse files
committed
feat: Add ability to specify initContainers
1 parent 976e3c2 commit a65978c

File tree

6 files changed

+32
-2
lines changed

6 files changed

+32
-2
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.67.2
6-
version: 8.11.2
6+
version: 8.11.3
77
kubeVersion: '>= 1.21.0-0'
88
icon: https://zitadel.com/zitadel-logo-dark.svg
99
maintainers:

charts/zitadel/templates/debug_replicaset.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ spec:
3131
securityContext:
3232
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3333
enableServiceLinks: false
34+
initContainers:
35+
{{- if .Values.zitadel.initContainers }}
36+
{{- toYaml .Values.zitadel.initContainers | nindent 8 }}
37+
{{- end }}
38+
{{- if .Values.zitadel.debug.initContainers }}
39+
{{- toYaml .Values.zitadel.debug.initContainers | nindent 8 }}
40+
{{- end }}
3441
containers:
3542
{{- if .Values.zitadel.extraContainers }}
3643
{{- toYaml .Values.zitadel.extraContainers | nindent 8 }}

charts/zitadel/templates/deployment.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,11 @@ spec:
204204
{{- end }}
205205
resources:
206206
{{- toYaml .Values.resources | nindent 14 }}
207-
{{- if .Values.zitadel.selfSignedCert.enabled }}
208207
initContainers:
208+
{{- if .Values.zitadel.initContainers }}
209+
{{- toYaml .Values.zitadel.initContainers | nindent 8 }}
210+
{{- end }}
211+
{{- if .Values.zitadel.selfSignedCert.enabled }}
209212
- name: generate-self-signed-cert
210213
image: alpine/openssl
211214
env:

charts/zitadel/templates/initjob.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ spec:
3535
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3636
enableServiceLinks: false
3737
restartPolicy: OnFailure
38+
initContainers:
39+
{{- if .Values.zitadel.initContainers }}
40+
{{- toYaml .Values.zitadel.initContainers | nindent 8 }}
41+
{{- end }}
42+
{{- if .Values.initJob.initContainers }}
43+
{{- toYaml .Values.initJob.initContainers | nindent 8 }}
44+
{{- end }}
3845
containers:
3946
{{- if .Values.zitadel.extraContainers }}
4047
{{- toYaml .Values.zitadel.extraContainers | nindent 8 }}

charts/zitadel/templates/setupjob.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ spec:
3737
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3838
enableServiceLinks: false
3939
restartPolicy: OnFailure
40+
initContainers:
41+
{{- if .Values.zitadel.initContainers }}
42+
{{- toYaml .Values.zitadel.initContainers | nindent 8 }}
43+
{{- end }}
44+
{{- if .Values.setupJob.initContainers }}
45+
{{- toYaml .Values.setupJob.initContainers | nindent 8 }}
46+
{{- end }}
4047
containers:
4148
{{- if .Values.zitadel.extraContainers }}
4249
{{- toYaml .Values.zitadel.extraContainers | nindent 8 }}

charts/zitadel/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ zitadel:
7373
annotations:
7474
helm.sh/hook: pre-install,pre-upgrade
7575
helm.sh/hook-weight: "1"
76+
initContainers: []
7677
extraContainers: []
7778

79+
# initContainers allow you to add any init containers you wish to use globally.
80+
# Additionally, they follow the same structure as extraContainers
81+
initContainers: []
7882
# extraContainers allows you to add any sidecar containers you wish to use globally.
7983
# Currently this is the Zitadel Deployment, Setup Job**, Init Job** and debug_replicaset** **If Enabled
8084
extraContainers: []
@@ -221,6 +225,7 @@ initJob:
221225
resources: {}
222226
backoffLimit: 5
223227
activeDeadlineSeconds: 300
228+
initContainers: []
224229
extraContainers: []
225230
podAnnotations: {}
226231
podAdditionalLabels: {}
@@ -239,6 +244,7 @@ setupJob:
239244
helm.sh/hook-weight: "2"
240245
resources: {}
241246
activeDeadlineSeconds: 300
247+
initContainers: []
242248
extraContainers: []
243249
podAnnotations: {}
244250
podAdditionalLabels: {}

0 commit comments

Comments
 (0)