mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
16 lines
430 B
YAML
16 lines
430 B
YAML
{{- define "template.serviceAccount" -}}
|
|
{{- if .Values.serviceAccount.create -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "template.serviceAccountName" . }}
|
|
labels:
|
|
{{- include "template.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- with .Values.serviceAccount.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- include "template.annotations" . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|