This commit is contained in:
Jaswanthi Kolla 2025-09-17 17:17:54 -04:00 committed by GitHub
commit 4422aa10a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -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" -}}

View File

@ -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 }}