This commit is contained in:
Kostas Kokkinos 2026-04-03 00:26:55 +02:00 committed by GitHub
commit 394f58d542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -115,6 +115,13 @@ args:
- dockerd
- --host=unix:///var/run/docker.sock
- --group=$(DOCKER_GROUP_GID)
{{- /* Append extra args only if containerMode.dind.extraDockerDaemonArgs exists and is a list */ -}}
{{- if and (kindIs "map" .Values.containerMode) (kindIs "map" (get .Values.containerMode "dind")) -}}
{{- $extra := (get (get .Values.containerMode "dind") "extraDockerDaemonArgs") | default (list) -}}
{{- range $extra }}
- {{ . | quote }}
{{- end }}
{{- end }}
env:
- name: DOCKER_GROUP_GID
value: "123"

View File

@ -118,6 +118,12 @@ githubConfigSecret:
## empty, and configuration should be applied to the template.
# containerMode:
# type: "dind" ## type can be set to "dind", "kubernetes", or "kubernetes-novolume"
# dind:
# ## extraDockerDaemonArgs is a list of extra arguments to pass to the docker daemon
# extraDockerDaemonArgs:
# - --registry-mirror=https://my-mirror.com
# - --https-proxy=http://my-proxy.com:1234
# - --mtu=1400
# ## the following is required when containerMode.type=kubernetes
# kubernetesModeWorkVolumeClaim:
# accessModes: ["ReadWriteOnce"]