Fix dind sidecar template (#4128)
This commit is contained in:
parent
e858d67926
commit
0b2534ebc9
|
|
@ -166,11 +166,11 @@ spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- if eq $containerMode.type "dind" }}
|
{{- if eq $containerMode.type "dind" }}
|
||||||
- name: init-dind-externals
|
- name: init-dind-externals
|
||||||
{{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }}
|
{{- include "gha-runner-scale-set.dind-init-container" . | nindent 8 }}
|
||||||
{{- end }}
|
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
|
||||||
{{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }}
|
|
||||||
- name: dind
|
- name: dind
|
||||||
{{- include "gha-runner-scale-set.dind-container" . | nindent 8 }}
|
{{- include "gha-runner-scale-set.dind-container" . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.template.spec.initContainers }}
|
{{- with .Values.template.spec.initContainers }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
|
|
|
||||||
|
|
@ -326,9 +326,16 @@ template:
|
||||||
## command:
|
## command:
|
||||||
## - docker
|
## - docker
|
||||||
## - info
|
## - info
|
||||||
## initialDelaySeconds: 0
|
## initialDelaySeconds: 0
|
||||||
## failureThreshold: 24
|
## failureThreshold: 24
|
||||||
## periodSeconds: 5
|
## periodSeconds: 5
|
||||||
|
## volumeMounts:
|
||||||
|
## - name: work
|
||||||
|
## mountPath: /home/runner/_work
|
||||||
|
## - name: dind-sock
|
||||||
|
## mountPath: /var/run
|
||||||
|
## - name: dind-externals
|
||||||
|
## mountPath: /home/runner/externals
|
||||||
## containers:
|
## containers:
|
||||||
## - name: runner
|
## - name: runner
|
||||||
## image: ghcr.io/actions/actions-runner:latest
|
## image: ghcr.io/actions/actions-runner:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue