Skip to content

Commit

Permalink
Merge pull request #98 from jasonoviedo/add_init_containers_support
Browse files Browse the repository at this point in the history
Adding initContainers support
  • Loading branch information
triarius authored Dec 15, 2022
2 parents 1c70863 + 4524320 commit 5ffc4be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Buildkite Agent Chart
name: agent
version: 0.6.0
version: 0.6.1
appVersion: 3.25.0
icon: https://buildkite.com/_next/static/assets/assets/images/brand-assets/buildkite-logo-portrait-on-light-61fc0230.png
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Parameter | Description | Default
`affinity` | Node/pod affinity | `{}`
`podAnnotations` | Extra annotation to apply to the pod | `{}`
`podContainers` | Extra pod container or sidecar configuration | `nil`
`podInitContainers` | Extra pod init containers | `nil`
`dind.enabled` | Enable preconfigured Docker-in-Docker (DinD) pod configuration | `false`
`dind.image` | Image to use for Docker-in-Docker (DinD) pod container | `docker:19.03-dind`
`dind.port` | Port Docker-in-Docker (DinD) daemon listens on as REST request proxy | `2375`
Expand Down
4 changes: 4 additions & 0 deletions stable/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
imagePullSecrets:
- name: {{ template "fullname" . }}-dockerconfigjson
{{- end }}
{{- if .Values.podInitContainers }}
initContainers:
{{ toYaml .Values.podInitContainers | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
Expand Down

0 comments on commit 5ffc4be

Please sign in to comment.