@@ -4,27 +4,31 @@ kind: ClusterRole
4
4
metadata :
5
5
name : external-snapshotter-role
6
6
rules :
7
- - apiGroups : ["snapshot.storage.k8s.io"]
8
- resources : ["volumesnapshotclasses"]
9
- verbs : ["get", "list", "watch"]
10
- - apiGroups : ["snapshot.storage.k8s.io"]
11
- resources : ["volumesnapshotcontents"]
12
- verbs : ["create", "get", "list", "watch", "update", "delete"]
13
- - apiGroups : ["snapshot.storage.k8s.io"]
14
- resources : ["volumesnapshots"]
15
- verbs : ["get", "list", "watch", "update"]
16
- - apiGroups : ["apiextensions.k8s.io"]
17
- resources : ["customresourcedefinitions"]
18
- verbs : ["create", "list", "watch", "delete"]
19
- - apiGroups : [""]
20
- resources : ["events"]
21
- verbs : ["list", "watch", "create", "update", "patch"]
22
- - apiGroups : ["storage.k8s.io"]
23
- resources : ["storageclasses"]
24
- verbs : ["watch", "get", "list"]
25
- - apiGroups : ["admissionregistration.k8s.io"]
26
- resources : ["mutatingwebhookconfigurations"]
27
- verbs : ["create"]
7
+ - apiGroups : [""]
8
+ resources : ["persistentvolumes"]
9
+ verbs : ["get", "list", "watch"]
10
+ - apiGroups : [""]
11
+ resources : ["persistentvolumeclaims"]
12
+ verbs : ["get", "list", "watch", "update"]
13
+ - apiGroups : ["storage.k8s.io"]
14
+ resources : ["storageclasses"]
15
+ verbs : ["get", "list", "watch"]
16
+ - apiGroups : [""]
17
+ resources : ["events"]
18
+ verbs : ["list", "watch", "create", "update", "patch"]
19
+ # Secrets resource ommitted since GCE PD snapshots does not require them
20
+ - apiGroups : ["snapshot.storage.k8s.io"]
21
+ resources : ["volumesnapshotclasses"]
22
+ verbs : ["get", "list", "watch"]
23
+ - apiGroups : ["snapshot.storage.k8s.io"]
24
+ resources : ["volumesnapshotcontents"]
25
+ verbs : ["create", "get", "list", "watch", "update", "delete"]
26
+ - apiGroups : ["snapshot.storage.k8s.io"]
27
+ resources : ["volumesnapshots"]
28
+ verbs : ["get", "list", "watch", "update"]
29
+ - apiGroups : ["apiextensions.k8s.io"]
30
+ resources : ["customresourcedefinitions"]
31
+ verbs : ["create", "list", "watch", "delete"]
28
32
29
33
---
30
34
0 commit comments