forked from galasa-dev/helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rbac.yaml
44 lines (39 loc) · 758 Bytes
/
rbac.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
#
# Copyright contributors to the Galasa project
#
# SPDX-License-Identifier: EPL-2.0
#
apiVersion: v1
kind: ServiceAccount
metadata:
name: galasa
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: galasa
rules:
- apiGroups: [""]
resources: ["services"]
verbs: ["get"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get","update"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get","patch","list","watch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get","list","create","delete"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: galasa
roleRef:
kind: Role
name: galasa
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: galasa