Merge cf344777a8 into 088e2a3a90
This commit is contained in:
commit
4422aa10a1
|
|
@ -124,6 +124,17 @@ volumeMounts:
|
|||
mountPath: /var/run
|
||||
- name: dind-externals
|
||||
mountPath: /home/runner/externals
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- >
|
||||
while pgrep "Runner.Worker" > /dev/null; do
|
||||
echo "Runner's Worker is still running, delaying termination...";
|
||||
sleep 2;
|
||||
done
|
||||
{{- end }}
|
||||
|
||||
{{- define "gha-runner-scale-set.dind-volume" -}}
|
||||
|
|
|
|||
|
|
@ -157,6 +157,9 @@ spec:
|
|||
restartPolicy: Never
|
||||
{{- end }}
|
||||
{{- $containerMode := .Values.containerMode }}
|
||||
{{- if eq $containerMode.type "dind" }}
|
||||
shareProcessNamespace: true
|
||||
{{- end }}
|
||||
{{- if eq $containerMode.type "kubernetes" }}
|
||||
serviceAccountName: {{ default (include "gha-runner-scale-set.kubeModeServiceAccountName" .) .Values.template.spec.serviceAccountName }}
|
||||
{{- else }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue