helm-charts/charts/library/common/templates/_serviceaccount.tpl
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 61626834fe
Copy over kah library
2022-07-26 19:55:03 +02:00

14 lines
437 B
Smarty

{{/*
The ServiceAccount object to be created.
*/}}
{{- define "common.serviceAccount" }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "common.names.serviceAccountName" . }}
labels: {{- include "common.labels" $ | nindent 4 }}
{{- with (merge (.Values.serviceAccount.annotations | default dict) (include "common.annotations" $ | fromYaml)) }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}