diff --git a/charts/gha-runner-scale-set/templates/_helpers.tpl b/charts/gha-runner-scale-set/templates/_helpers.tpl index 9dfb615f..00e35006 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:///var/run/docker.sock 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 }}