Skip to content

Commit af2e7a0

Browse files
feat: add configurable initContainers to collab helm chart (#204)
1 parent bb4dbaa commit af2e7a0

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

charts/collab/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ spec:
2929
- name: {{ include "codetogether.fullname" . }}-pull-secret
3030
{{- end }}
3131
serviceAccountName: {{ include "codetogether.serviceAccountName" . }}
32+
33+
{{- with .Values.initContainers }}
34+
initContainers:
35+
{{- toYaml . | nindent 8 }}
36+
{{- end }}
37+
3238
containers:
3339
- name: {{ .Chart.Name }}
3440
securityContext:

charts/collab/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,18 @@ serviceAccount:
212212

213213
podAnnotations: {}
214214

215+
# Optional: add initContainers (startup containers) to the pod spec.
216+
# Useful to wait for dependencies (e.g., Intel URL reachability, locator DB readiness, etc.)
217+
# before CodeTogether Collab starts.
218+
initContainers: []
219+
# Example (replace the `[]` above with the list below):
220+
# - name: wait-for-intel
221+
# image: busybox:1.36
222+
# command: ["sh", "-c"]
223+
# args:
224+
# - >
225+
# until nc -z your-intel-host 443; do echo "Waiting for Intel..."; sleep 2; done
226+
215227
securityContext: {} #defaults
216228
# capabilities:
217229
# drop:

charts/intel/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ podAnnotations: {}
136136
# Optional: add initContainers (startup containers) to the pod spec.
137137
# Useful to wait for Cassandra or run startup checks before Intel starts.
138138
initContainers: []
139-
# Example:
140-
# initContainers:
139+
# Example (replace the `[]` above with the list below):
141140
# - name: wait-for-cassandra
142141
# image: busybox:1.36
143142
# command: ["sh", "-c"]

0 commit comments

Comments
 (0)