Merge pull request #60804 from sbezverk/e2e_csi_test

Automatic merge from submit-queue (batch tested with PRs 60679, 60804). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fixing e2e CSI test

Closes #60803

After switching to CSI 0.2.0 spec, additional RBAC permissions are required.  This PR adds missing permissions.

```release-note
None
```
This commit is contained in:
Kubernetes Submit Queue 2018-03-05 15:38:46 -08:00 committed by GitHub
commit f68eb1e171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,16 @@ func csiClusterRole(
Resources: []string{"persistentvolumeclaims"}, Resources: []string{"persistentvolumeclaims"},
Verbs: []string{"get", "list", "watch", "update"}, Verbs: []string{"get", "list", "watch", "update"},
}, },
{
APIGroups: []string{""},
Resources: []string{"events"},
Verbs: []string{"get", "list", "watch", "creat", "update", "patch"},
},
{
APIGroups: []string{""},
Resources: []string{"secrets"},
Verbs: []string{"get", "list"},
},
{ {
APIGroups: []string{""}, APIGroups: []string{""},
Resources: []string{"nodes"}, Resources: []string{"nodes"},