Skip to content

Commit 0b2534e

Browse files
authored
Fix dind sidecar template (#4128)
1 parent e858d67 commit 0b2534e

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

charts/gha-runner-scale-set/templates/autoscalingrunnerset.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ spec:
166166
initContainers:
167167
{{- if eq $containerMode.type "dind" }}
168168
- name: init-dind-externals
169-
{{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }}
170-
{{- end }}
171-
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
169+
{{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }}
170+
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
172171
- name: dind
173-
{{- include "gha-runner-scale-set.dind-container" . | nindent 8 }}
172+
{{- include "gha-runner-scale-set.dind-container" . | nindent 8 }}
173+
{{- end }}
174174
{{- end }}
175175
{{- with .Values.template.spec.initContainers }}
176176
{{- toYaml . | nindent 6 }}

charts/gha-runner-scale-set/values.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,16 @@ template:
326326
## command:
327327
## - docker
328328
## - info
329-
## initialDelaySeconds: 0
330-
## failureThreshold: 24
331-
## periodSeconds: 5
329+
## initialDelaySeconds: 0
330+
## failureThreshold: 24
331+
## periodSeconds: 5
332+
## volumeMounts:
333+
## - name: work
334+
## mountPath: /home/runner/_work
335+
## - name: dind-sock
336+
## mountPath: /var/run
337+
## - name: dind-externals
338+
## mountPath: /home/runner/externals
332339
## containers:
333340
## - name: runner
334341
## image: ghcr.io/actions/actions-runner:latest

0 commit comments

Comments
 (0)