blob: e6e776d0910e6fea060d713c68f0853fde519eb5 [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001{{- if or .Values.serviceAccount.create -}}
2apiVersion: v1
3kind: ServiceAccount
4metadata:
5 labels:
6 {{- include "ingress-nginx.labels" . | nindent 4 }}
7 app.kubernetes.io/component: controller
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +04008 {{- with .Values.controller.labels }}
9 {{- toYaml . | nindent 4 }}
10 {{- end }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040011 name: {{ template "ingress-nginx.serviceAccountName" . }}
12 namespace: {{ .Release.Namespace }}
Giorgi Lekveishvilicccf72f2023-05-19 16:13:22 +040013 {{- if .Values.serviceAccount.annotations }}
14 annotations:
15 {{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
16 {{- end }}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040017automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
18{{- end }}