blob: 6026842ffb8f076113691974bb7c8ecaf53406a9 [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +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 {{- toYaml . | nindent 4 }}
15 {{- end }}
16 labels:
17 app: {{ include "cert-manager.name" . }}
18 app.kubernetes.io/name: {{ include "cert-manager.name" . }}
19 app.kubernetes.io/instance: {{ .Release.Name }}
20 app.kubernetes.io/component: "controller"
21 {{- include "labels" . | nindent 4 }}
22 {{- with .Values.serviceAccount.labels }}
23 {{ toYaml . | nindent 4 }}
24 {{- end }}
25{{- end }}