feat: add init containers to the helm chart (#5874)

* add init containers to coder deployment

* fix formatting issues
This commit is contained in:
mh013370 2023-01-30 02:02:55 +00:00 committed by GitHub
parent 3980f15340
commit d5d9cc8d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -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 }}

View File

@ -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: {}