From 9a9e48f0f784536129deaa95b3a1ed216be50d28 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Fri, 9 May 2025 11:00:04 +0200 Subject: [PATCH] Set runAsUser and runAsGroup to 0 for dind security context --- charts/gha-runner-scale-set/templates/_helpers.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index c9729235..078677ec 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -106,6 +106,8 @@ env: value: "123" securityContext: privileged: true + runAsUser: 0 + runAsGroup: 0 {{- if (ge (.Capabilities.KubeVersion.Minor | int) 29) }} restartPolicy: Always {{- end }}