14 lines
510 B
YAML
14 lines
510 B
YAML
{{- if ( and .Values.postdeploy.serviceAccount.enabled ( not .Values.postdeploy.serviceAccount.preexisting ) ) -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "postdeploy.serviceAccountName" . }}
|
|
labels:
|
|
{{- include "postdeploy.labels" . | nindent 4 }}
|
|
{{- with .Values.postdeploy.serviceAccount.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
automountServiceAccountToken: {{ .Values.postdeploy.serviceAccount.automountServiceAccountToken }}
|
|
{{- end }}
|