mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 10:05:27 +00:00
Allow specifying dind container in values (#750)
This allows: - resource spec for the dind container different from the main agent - environment variables for the dind container can also be specified in values, e.g. to change the default driver if one so wishes - crucially: specifying a different dind image
This commit is contained in:
parent
9ff0f230ec
commit
dbd048c5e9
2 changed files with 13 additions and 4 deletions
|
@ -57,12 +57,14 @@ spec:
|
||||||
name: {{ . }}
|
name: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: dind
|
- name: dind
|
||||||
image: "docker:20.10.12-dind"
|
image: {{ .Values.dind.image }}
|
||||||
env:
|
env:
|
||||||
- name: DOCKER_DRIVER
|
{{- range $key, $value := .Values.dind.env }}
|
||||||
value: overlay2
|
- name: {{ $key }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.dind.resources | nindent 12 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
|
@ -7,6 +7,13 @@ image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
|
dind:
|
||||||
|
image: "docker:20.10.12-dind"
|
||||||
|
env:
|
||||||
|
- name: DOCKER_DRIVER
|
||||||
|
value: overlay2
|
||||||
|
resources: {}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
WOODPECKER_SERVER: "woodpecker-server.<namespace>.svc.cluster.local:9000"
|
WOODPECKER_SERVER: "woodpecker-server.<namespace>.svc.cluster.local:9000"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue