blob: dff5c0672ad67cc303d1bcd9e13d1cfa00f98869 [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001{{- if .Values.webhook.serviceAccount.create }}
2apiVersion: v1
3kind: ServiceAccount
4automountServiceAccountToken: {{ .Values.webhook.serviceAccount.automountServiceAccountToken }}
5metadata:
6 name: {{ template "webhook.serviceAccountName" . }}
7 namespace: {{ include "cert-manager.namespace" . }}
8 {{- with .Values.webhook.serviceAccount.annotations }}
9 annotations:
10 {{- toYaml . | nindent 4 }}
11 {{- end }}
12 labels:
13 app: {{ include "webhook.name" . }}
14 app.kubernetes.io/name: {{ include "webhook.name" . }}
15 app.kubernetes.io/instance: {{ .Release.Name }}
16 app.kubernetes.io/component: "webhook"
17 {{- include "labels" . | nindent 4 }}
18 {{- with .Values.webhook.serviceAccount.labels }}
19 {{ toYaml . | nindent 4 }}
20 {{- end }}
21{{- with .Values.global.imagePullSecrets }}
22imagePullSecrets:
23 {{- toYaml . | nindent 2 }}
24{{- end }}
25{{- end }}