mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 11:41:27 +00:00
19 lines
657 B
YAML
19 lines
657 B
YAML
{{- $containerMode := .Values.containerMode }}
|
|
{{- if and (eq $containerMode.type "kubernetes") (not .Values.template.spec.serviceAccountName) }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "gha-runner-scale-set.kubeModeServiceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- if .Values.containerMode.kubernetesModeServiceAccount }}
|
|
{{- with .Values.containerMode.kubernetesModeServiceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
finalizers:
|
|
- actions.github.com/cleanup-protection
|
|
labels:
|
|
{{- include "gha-runner-scale-set.labels" . | nindent 4 }}
|
|
{{- end }}
|