From e647b119bd42e1c65d77944a4b3ea8f3b7761622 Mon Sep 17 00:00:00 2001 From: Shaul Date: Tue, 30 Jan 2024 21:25:07 +0200 Subject: [PATCH 1/2] allow configuring the dind image --- charts/gha-runner-scale-set/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index 764d923f..2fbd9875 100644 --- a/charts/gha-runner-scale-set/templates/_helpers.tpl +++ b/charts/gha-runner-scale-set/templates/_helpers.tpl @@ -96,7 +96,7 @@ volumeMounts: {{- end }} {{- define "gha-runner-scale-set.dind-container" -}} -image: docker:dind +image: {{ .Values.dind.image | default "docker:dind" }} args: - dockerd - --host=unix:///run/docker/docker.sock From 682d2b55fd61f0a1a3fba0029f7b8b49611f00fd Mon Sep 17 00:00:00 2001 From: Shaul Date: Tue, 30 Jan 2024 22:11:57 +0200 Subject: [PATCH 2/2] service account --- .../gha-runner-scale-set/templates/serviceaccount.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 charts/gha-runner-scale-set/templates/serviceaccount.yaml diff --git a/charts/gha-runner-scale-set/templates/serviceaccount.yaml b/charts/gha-runner-scale-set/templates/serviceaccount.yaml new file mode 100644 index 00000000..750963de --- /dev/null +++ b/charts/gha-runner-scale-set/templates/serviceaccount.yaml @@ -0,0 +1,10 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ .Values.serviceAccount.name | default .Chart.Name }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }}