blob: 698ddef8c6ed187c0cc55bf7ccce0f18c99b728f [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:
gio33d62932026-07-23 16:39:35 +040014 {{- range $k, $v := . }}
15 {{- printf "%s: %s" (tpl $k $) (tpl $v $) | nindent 4 }}
16 {{- end }}
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +040017 {{- 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 }}
gio33d62932026-07-23 16:39:35 +040025 {{- toYaml . | nindent 4 }}
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +040026 {{- end }}
27{{- end }}