mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-25 07:39:23 +00:00
[common] Add common chart from KaH
This commit is contained in:
14
charts/common/templates/_serviceaccount.tpl
Normal file
14
charts/common/templates/_serviceaccount.tpl
Normal file
@@ -0,0 +1,14 @@
|
||||
{{/*
|
||||
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 }}
|
||||
Reference in New Issue
Block a user