@@ -45,9 +45,6 @@ apiVersion: rbac.authorization.k8s.io/v1
45
45
metadata :
46
46
name : external-provisioner-role
47
47
rules :
48
- - apiGroups : [""]
49
- resources : ["secrets"]
50
- verbs : ["get", "list"]
51
48
- apiGroups : [""]
52
49
resources : ["persistentvolumes"]
53
50
verbs : ["get", "list", "watch", "create", "delete"]
@@ -60,12 +57,6 @@ rules:
60
57
- apiGroups : [""]
61
58
resources : ["events"]
62
59
verbs : ["list", "watch", "create", "update", "patch"]
63
- - apiGroups : ["snapshot.storage.k8s.io"]
64
- resources : ["volumesnapshots"]
65
- verbs : ["get", "list"]
66
- - apiGroups : ["snapshot.storage.k8s.io"]
67
- resources : ["volumesnapshotcontents"]
68
- verbs : ["get", "list"]
69
60
70
61
---
71
62
@@ -116,47 +107,3 @@ roleRef:
116
107
kind : ClusterRole
117
108
name : external-attacher-role
118
109
apiGroup : rbac.authorization.k8s.io
119
-
120
- ---
121
- # xref: https://github.com/kubernetes-csi/external-snapshotter/blob/master/deploy/kubernetes/rbac.yaml
122
- apiVersion : rbac.authorization.k8s.io/v1
123
- kind : ClusterRole
124
- metadata :
125
- name : external-snapshotter-role
126
- rules :
127
- - apiGroups : ["snapshot.storage.k8s.io"]
128
- resources : ["volumesnapshotclasses"]
129
- verbs : ["get", "list", "watch"]
130
- - apiGroups : ["snapshot.storage.k8s.io"]
131
- resources : ["volumesnapshotcontents"]
132
- verbs : ["create", "get", "list", "watch", "update", "delete"]
133
- - apiGroups : ["snapshot.storage.k8s.io"]
134
- resources : ["volumesnapshots"]
135
- verbs : ["get", "list", "watch", "update"]
136
- - apiGroups : ["apiextensions.k8s.io"]
137
- resources : ["customresourcedefinitions"]
138
- verbs : ["create", "list", "watch", "delete"]
139
- - apiGroups : [""]
140
- resources : ["events"]
141
- verbs : ["list", "watch", "create", "update", "patch"]
142
- - apiGroups : ["storage.k8s.io"]
143
- resources : ["storageclasses"]
144
- verbs : ["watch", "get", "list"]
145
- - apiGroups : ["admissionregistration.k8s.io"]
146
- resources : ["mutatingwebhookconfigurations"]
147
- verbs : ["create"]
148
-
149
- ---
150
-
151
- kind : ClusterRoleBinding
152
- apiVersion : rbac.authorization.k8s.io/v1
153
- metadata :
154
- name : csi-controller-snapshotter-binding
155
- subjects :
156
- - kind : ServiceAccount
157
- name : csi-controller-sa
158
- namespace : default
159
- roleRef :
160
- kind : ClusterRole
161
- name : external-snapshotter-role
162
- apiGroup : rbac.authorization.k8s.io
0 commit comments