Skip to content

Commit d5d9cc8

Browse files
authored
feat: add init containers to the helm chart (coder#5874)
* add init containers to coder deployment * fix formatting issues
1 parent 3980f15 commit d5d9cc8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

helm/templates/coder.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ spec:
4545
nodeSelector:
4646
{{ toYaml . | nindent 8 }}
4747
{{- end }}
48+
{{- with .Values.coder.initContainers }}
49+
initContainers:
50+
{{ toYaml . | nindent 8 }}
51+
{{- end }}
4852
containers:
4953
- name: coder
5054
image: {{ include "coder.image" . | quote }}

helm/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ coder:
2222
pullSecrets: []
2323
# - name: "pull-secret"
2424

25+
# coder.initContainers -- Init containers for the deployment. See:
26+
# https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
27+
initContainers:
28+
[]
29+
# - name: init-container
30+
# image: busybox:1.28
31+
# command: ['sh', '-c', "sleep 2"]
32+
2533
# coder.annotations -- The Deployment annotations. See:
2634
# https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
2735
annotations: {}

0 commit comments

Comments
 (0)