diff --git a/helm/templates/coder.yaml b/helm/templates/coder.yaml index 43e70dd56b..a93b332c13 100644 --- a/helm/templates/coder.yaml +++ b/helm/templates/coder.yaml @@ -45,6 +45,10 @@ spec: nodeSelector: {{ toYaml . | nindent 8 }} {{- end }} + {{- with .Values.coder.initContainers }} + initContainers: + {{ toYaml . | nindent 8 }} + {{- end }} containers: - name: coder image: {{ include "coder.image" . | quote }} diff --git a/helm/values.yaml b/helm/values.yaml index f7e082c187..ce2a2df5c5 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -22,6 +22,14 @@ coder: pullSecrets: [] # - name: "pull-secret" + # coder.initContainers -- Init containers for the deployment. See: + # https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + initContainers: + [] + # - name: init-container + # image: busybox:1.28 + # command: ['sh', '-c', "sleep 2"] + # coder.annotations -- The Deployment annotations. See: # https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ annotations: {}