-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathserviceaccount.yaml
61 lines (58 loc) · 1.94 KB
/
serviceaccount.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{{- if .Values.serviceAccount.create -}}
{{- $type := "sa" -}}
{{- $action := "common" -}}
{{- $Name := include "passbolt-library.fullname" . -}}
{{- $fullName := printf "%s-%s-%s" $Name $type $action -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $fullName }}
labels:
{{- include "passbolt-library.labels" . | nindent 4 }}
{{- include "passbolt-library.selectorLabels" . | nindent 4 }}
{{- include "passbolt-library.typelabels" (dict "action" $action "type" $type) | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
---
{{- $type := "sa" -}}
{{- $action := "create-gpg-keys" -}}
{{- $Name := include "passbolt-library.fullname" . -}}
{{- $fullName := printf "%s-%s-%s" $Name $type $action }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $fullName }}
annotations:
helm.sh/hook: pre-install, pre-upgrade
helm.sh/hook-weight: "-1"
labels:
{{- include "passbolt-library.labels" . | nindent 4 }}
{{- include "passbolt-library.selectorLabels" . | nindent 4 }}
{{- include "passbolt-library.typelabels" (dict "action" $action "type" $type) | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
---
{{- $type := "sa" -}}
{{- $action := "create-jwt-keys" -}}
{{- $Name := include "passbolt-library.fullname" . -}}
{{- $fullName := printf "%s-%s-%s" $Name $type $action }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ $fullName }}
annotations:
helm.sh/hook: pre-install, pre-upgrade
helm.sh/hook-weight: "-1"
labels:
{{- include "passbolt-library.labels" . | nindent 4 }}
{{- include "passbolt-library.selectorLabels" . | nindent 4 }}
{{- include "passbolt-library.typelabels" (dict "action" $action "type" $type) | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}