This commit is contained in:
David Jetelina 2025-12-09 18:56:47 +02:00 committed by GitHub
commit 04e3dbf093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -86,6 +86,7 @@ app.kubernetes.io/instance: {{ include "gha-runner-scale-set.scale-set-name" . }
{{- range $i, $val := .Values.template.spec.containers }}
{{- if eq $val.name "runner" }}
image: {{ $val.image }}
imagePullPolicy: {{ $val.imagePullPolicy }}
command: ["cp"]
args: ["-r", "/home/runner/externals/.", "/home/runner/tmpDir/"]
volumeMounts:
@ -96,7 +97,11 @@ volumeMounts:
{{- end }}
{{- define "gha-runner-scale-set.dind-container" -}}
image: docker:dind
{{- $root := . -}}
{{- range $i, $val := .Values.template.spec.dindContainers }}
{{- if eq $val.name "dind" }}
image: {{ $val.image }}
imagePullPolicy: {{ $val.imagePullPolicy }}
args:
- dockerd
- --host=unix:///var/run/docker.sock
@ -106,7 +111,7 @@ env:
value: "123"
securityContext:
privileged: true
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
{{- if (ge ($root.Capabilities.KubeVersion.Minor | int) 29) }}
restartPolicy: Always
startupProbe:
exec:
@ -124,6 +129,8 @@ volumeMounts:
mountPath: /var/run
- name: dind-externals
mountPath: /home/runner/externals
{{- end }}
{{- end }}
{{- end }}
{{- define "gha-runner-scale-set.dind-volume" -}}

View File

@ -415,7 +415,12 @@ template:
containers:
- name: runner
image: ghcr.io/actions/actions-runner:latest
imagePullPolicy: Always
command: ["/home/runner/run.sh"]
dindContainers:
- name: dind
image: docker:dind
imagePullPolicy: Always
## Optional controller service account that needs to have required Role and RoleBinding
## to operate this gha-runner-scale-set installation.
## The helm chart will try to find the controller deployment and its service account at installation time.