Skip to content

Commit 93c7114

Browse files
feat(helm): add configurable initContainers (startup containers) to Collab deployment
Fixes: #203 - This PR adds support for configurable “startup containers” by allowing users to define Kubernetes initContainers in the Collab Helm chart.
1 parent bb4dbaa commit 93c7114

2 files changed

Lines changed: 19 additions & 0 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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,19 @@ 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:
220+
# initContainers:
221+
# - name: wait-for-intel
222+
# image: busybox:1.36
223+
# command: ["sh", "-c"]
224+
# args:
225+
# - >
226+
# until nc -z your-intel-host 443; do echo "Waiting for Intel..."; sleep 2; done
227+
215228
securityContext: {} #defaults
216229
# capabilities:
217230
# drop:

0 commit comments

Comments
 (0)