16 lines
482 B
YAML
16 lines
482 B
YAML
{{- if .Values.serviceAccount.create -}}
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "kubernetes-ingress-controller.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "kubernetes-ingress-controller.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: controller
|
|
{{- if .Values.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|