blob: c868af51c7ae94c22d8677559112d6c5fd0137f5 [file] [log] [blame]
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04001{{ if .Values.serviceAccount.create }}
2apiVersion: v1
3kind: ServiceAccount
gio20157e82026-07-22 13:10:48 +04004automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04005metadata:
6 name: {{ include "jenkins.serviceAccountName" . }}
7 namespace: {{ template "jenkins.namespace" . }}
8{{- if .Values.serviceAccount.annotations }}
9 annotations:
10{{ tpl (toYaml .Values.serviceAccount.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.serviceAccount.extraLabels }}
15{{ tpl (toYaml .Values.serviceAccount.extraLabels) . | indent 4 }}
16{{- end }}
17{{- if .Values.serviceAccount.imagePullSecretName }}
18imagePullSecrets:
19 - name: {{ .Values.serviceAccount.imagePullSecretName }}
20{{- end -}}
21{{ end }}