Merge b4ca05f4e8 into 82d5579696
This commit is contained in:
commit
04e3dbf093
|
|
@ -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" -}}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue