summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_helm_chart/templates/serviceaccount.yaml
blob: 7886ade34a2adbc22a90e93092afdff7c3cec841 (plain)
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
---
apiVersion: v1
kind: Namespace
metadata:
  name: {{ .Values.namespace }}

---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: rapid-testing-sa
  namespace: {{ .Values.namespace }}

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: rapid-testing-cr
rules:
- apiGroups: [""]
  resources: ["pods", "pods/exec", "pods/status"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: rapid-testing-crb
subjects:
- kind: ServiceAccount
  name: rapid-testing-sa
  namespace: {{ .Values.namespace }}
roleRef:
  kind: ClusterRole
  name: rapid-testing-cr
  apiGroup: rbac.authorization.k8s.io