forked from RHsyseng/kubevirt-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitops-rbac.yaml
69 lines (69 loc) · 1.3 KB
/
gitops-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: openshift-gitops-openshift-virtualization
namespace: openshift-cnv
rules:
- apiGroups:
- hco.kubevirt.io
resources:
- hyperconvergeds
verbs:
- create
- update
- patch
- delete
- apiGroups:
- cdi.kubevirt.io
resources:
- datavolumes
verbs:
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: ogaac-openshift-virtualization
namespace: openshift-cnv
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: openshift-gitops-openshift-virtualization
subjects:
- kind: ServiceAccount
name: openshift-gitops-argocd-application-controller
namespace: openshift-gitops
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: gitops-vms
namespace: kubevirt-gitops
rules:
- apiGroups:
- kubevirt.io
resources:
- virtualmachines
- virtualmachineinstances
verbs:
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: ogaac-gitops-vms
namespace: kubevirt-gitops
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: gitops-vms
subjects:
- kind: ServiceAccount
name: openshift-gitops-argocd-application-controller
namespace: openshift-gitops