blob: fac93d0a009e21c9bb9a38571ac6687753a6a839 [file] [log] [blame]
giod55d03a2026-07-23 16:57:48 +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 {{- $value := $v | quote }}
16 {{- printf "%s: %s" (tpl $k $) (tpl $value $) | nindent 4 }}
17 {{- end }}
18 {{- end }}
19 labels:
20 app: {{ include "cert-manager.name" . }}
21 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
22 app.kubernetes.io/instance: {{ .Release.Name }}
23 app.kubernetes.io/component: "controller"
24 {{- include "labels" . | nindent 4 }}
25 {{- with .Values.serviceAccount.labels }}
26 {{- toYaml . | nindent 4 }}
27 {{- end }}
28{{- end }}