update
This commit is contained in:
23
pocketbase/templates/serviceaccount.yaml
Normal file
23
pocketbase/templates/serviceaccount.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- /*
|
||||
Generate ServiceAccount for each PocketBase instance
|
||||
*/ -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- range .Values.instances }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: pocketbase-{{ .id }}
|
||||
labels:
|
||||
app: pocketbase
|
||||
instance: {{ .id }}
|
||||
{{- include "pocketbase.labels" $ | nindent 4 }}
|
||||
{{- with $.Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $.Values.serviceAccount.automount }}
|
||||
automountServiceAccountToken: {{ $.Values.serviceAccount.automount }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user