From 93c71148a0591d5e0a7fbc8df77b8ab321534140 Mon Sep 17 00:00:00 2001 From: danc094codetogether Date: Wed, 18 Feb 2026 18:28:26 -0600 Subject: [PATCH 1/2] feat(helm): add configurable initContainers (startup containers) to Collab deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #203 - This PR adds support for configurable “startup containers” by allowing users to define Kubernetes initContainers in the Collab Helm chart. --- charts/collab/templates/deployment.yaml | 6 ++++++ charts/collab/values.yaml | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/charts/collab/templates/deployment.yaml b/charts/collab/templates/deployment.yaml index 89e46fe..17e1b9b 100644 --- a/charts/collab/templates/deployment.yaml +++ b/charts/collab/templates/deployment.yaml @@ -29,6 +29,12 @@ spec: - name: {{ include "codetogether.fullname" . }}-pull-secret {{- end }} serviceAccountName: {{ include "codetogether.serviceAccountName" . }} + + {{- with .Values.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} + containers: - name: {{ .Chart.Name }} securityContext: diff --git a/charts/collab/values.yaml b/charts/collab/values.yaml index 6ab5418..7ac089d 100644 --- a/charts/collab/values.yaml +++ b/charts/collab/values.yaml @@ -212,6 +212,19 @@ serviceAccount: podAnnotations: {} +# Optional: add initContainers (startup containers) to the pod spec. +# Useful to wait for dependencies (e.g., Intel URL reachability, locator DB readiness, etc.) +# before CodeTogether Collab starts. +initContainers: [] +# Example: +# initContainers: +# - name: wait-for-intel +# image: busybox:1.36 +# command: ["sh", "-c"] +# args: +# - > +# until nc -z your-intel-host 443; do echo "Waiting for Intel..."; sleep 2; done + securityContext: {} #defaults # capabilities: # drop: From 2f215092cde7386d3c0da0c035796dd805d9978c Mon Sep 17 00:00:00 2001 From: danc094codetogether Date: Fri, 20 Feb 2026 11:07:22 -0600 Subject: [PATCH 2/2] docs(values): fix initContainers for Collab and Intel examples to avoid duplicate keys --- charts/collab/values.yaml | 3 +-- charts/intel/values.yaml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/charts/collab/values.yaml b/charts/collab/values.yaml index 7ac089d..6b514a0 100644 --- a/charts/collab/values.yaml +++ b/charts/collab/values.yaml @@ -216,8 +216,7 @@ podAnnotations: {} # Useful to wait for dependencies (e.g., Intel URL reachability, locator DB readiness, etc.) # before CodeTogether Collab starts. initContainers: [] -# Example: -# initContainers: +# Example (replace the `[]` above with the list below): # - name: wait-for-intel # image: busybox:1.36 # command: ["sh", "-c"] diff --git a/charts/intel/values.yaml b/charts/intel/values.yaml index 717a055..7e65db5 100644 --- a/charts/intel/values.yaml +++ b/charts/intel/values.yaml @@ -136,8 +136,7 @@ podAnnotations: {} # Optional: add initContainers (startup containers) to the pod spec. # Useful to wait for Cassandra or run startup checks before Intel starts. initContainers: [] -# Example: -# initContainers: +# Example (replace the `[]` above with the list below): # - name: wait-for-cassandra # image: busybox:1.36 # command: ["sh", "-c"]