blob: 698ddef8c6ed187c0cc55bf7ccce0f18c99b728f [file] [log] [blame]
Giorgi Lekveishviliea328da2026-07-29 12:15:15 +04001{{- if .Values.serviceAccount.create }}
2apiVersion: v1
3kind: ServiceAccount
4{{- with .Values.global.imagePullSecrets }}
5imagePullSecrets:
6 {{- toYaml . | nindent 2 }}
7{{- end }}
8automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
9metadata:
10 name: {{ template "cert-manager.serviceAccountName" . }}
11 namespace: {{ include "cert-manager.namespace" . }}
12 {{- with .Values.serviceAccount.annotations }}
13 annotations:
14 {{- range $k, $v := . }}
15 {{- printf "%s: %s" (tpl $k $) (tpl $v $) | nindent 4 }}
16 {{- end }}
17 {{- end }}
18 labels:
19 app: {{ include "cert-manager.name" . }}
20 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
21 app.kubernetes.io/instance: {{ .Release.Name }}
22 app.kubernetes.io/component: "controller"
23 {{- include "labels" . | nindent 4 }}
24 {{- with .Values.serviceAccount.labels }}
25 {{- toYaml . | nindent 4 }}
26 {{- end }}
27{{- end }}