18 lines
668 B
YAML
18 lines
668 B
YAML
{{ template "vault.serverServiceAccountEnabled" . }}
|
|
{{- if .serverServiceAccountEnabled -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ template "vault.serviceAccount.name" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
helm.sh/chart: {{ include "vault.chart" . }}
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
{{- if .Values.server.serviceAccount.extraLabels -}}
|
|
{{- toYaml .Values.server.serviceAccount.extraLabels | nindent 4 -}}
|
|
{{- end -}}
|
|
{{ template "vault.serviceAccount.annotations" . }}
|
|
{{ end }}
|