aboutsummaryrefslogtreecommitdiff
path: root/script/helm/garage/templates/serviceaccount.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'script/helm/garage/templates/serviceaccount.yaml')
-rw-r--r--script/helm/garage/templates/serviceaccount.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/script/helm/garage/templates/serviceaccount.yaml b/script/helm/garage/templates/serviceaccount.yaml
new file mode 100644
index 00000000..a0a89a33
--- /dev/null
+++ b/script/helm/garage/templates/serviceaccount.yaml
@@ -0,0 +1,12 @@
+{{- if .Values.serviceAccount.create -}}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: {{ include "garage.serviceAccountName" . }}
+ labels:
+ {{- include "garage.labels" . | nindent 4 }}
+ {{- with .Values.serviceAccount.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+{{- end }}