16 lines
429 B
Smarty
16 lines
429 B
Smarty
|
|
{{- define "lib.serviceaccount" -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "lib.serviceAccountName" . }}
|
|
namespace: {{ .Values.namespace }}
|
|
labels:
|
|
{{- include "lib.labels" . | nindent 4 }}
|
|
{{- with .Values.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
|
|
{{- end }}
|