blob: 42df234a05788c2f74ffd8b2c6a156635f3b2e09 [file] [log] [blame]
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04001{{ if .Values.serviceAccountAgent.create }}
2apiVersion: v1
3kind: ServiceAccount
gio20157e82026-07-22 13:10:48 +04004automountServiceAccountToken: {{ .Values.serviceAccountAgent.automountServiceAccountToken }}
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04005metadata:
6 name: {{ include "jenkins.serviceAccountAgentName" . }}
7 namespace: {{ template "jenkins.agent.namespace" . }}
8{{- if .Values.serviceAccountAgent.annotations }}
9 annotations:
10{{ tpl (toYaml .Values.serviceAccountAgent.annotations) . | indent 4 }}
11{{- end }}
12 labels:
gio20157e82026-07-22 13:10:48 +040013 {{- include "jenkins.labels" . | nindent 4 }}
Giorgi Lekveishvili35982662024-04-05 13:05:40 +040014{{- if .Values.serviceAccountAgent.extraLabels }}
15{{ tpl (toYaml .Values.serviceAccountAgent.extraLabels) . | indent 4 }}
16{{- end }}
17{{- if .Values.serviceAccountAgent.imagePullSecretName }}
18imagePullSecrets:
19 - name: {{ .Values.serviceAccountAgent.imagePullSecretName }}
20{{- end -}}
21{{ end }}