1+ apiVersion : rbac.authorization.k8s.io/v1
2+ kind : ClusterRole
3+ metadata :
4+ name : system:csi-external-snapshotter
5+ rules :
6+ - apiGroups : ["snapshot.storage.k8s.io"]
7+ resources : ["volumesnapshotclasses"]
8+ verbs : ["get", "list", "watch"]
9+ - apiGroups : ["snapshot.storage.k8s.io"]
10+ resources : ["volumesnapshotcontents"]
11+ verbs : ["create", "get", "list", "watch", "update", "delete"]
12+ - apiGroups : ["snapshot.storage.k8s.io"]
13+ resources : ["volumesnapshots"]
14+ verbs : ["get", "list", "watch", "update"]
15+ - apiGroups : ["apiextensions.k8s.io"]
16+ resources : ["customresourcedefinitions"]
17+ verbs : ["create", "list", "watch", "delete"]
18+ - apiGroups : [""]
19+ resources : ["events"]
20+ verbs : ["list", "watch", "create", "update", "patch"]
21+ - apiGroups : ["storage.k8s.io"]
22+ resources : ["storageclasses"]
23+ verbs : ["watch", "get", "list"]
24+ - apiGroups : ["admissionregistration.k8s.io"]
25+ resources : ["mutatingwebhookconfigurations"]
26+ verbs : ["create"]
27+ ---
28+
129kind : ClusterRole
230apiVersion : rbac.authorization.k8s.io/v1
331metadata :
@@ -67,4 +95,19 @@ subjects:
6795roleRef :
6896 kind : ClusterRole
6997 name : system:csi-external-provisioner
98+ apiGroup : rbac.authorization.k8s.io
99+
100+ ---
101+
102+ kind : ClusterRoleBinding
103+ apiVersion : rbac.authorization.k8s.io/v1
104+ metadata :
105+ name : csi-controller-snapshotter-binding
106+ subjects :
107+ - kind : ServiceAccount
108+ name : csi-controller-sa
109+ namespace : default
110+ roleRef :
111+ kind : ClusterRole
112+ name : system:csi-external-snapshotter
70113 apiGroup : rbac.authorization.k8s.io
0 commit comments