Skip to content

Commit

Permalink
Merge pull request #31 from Fedosin/snapshots
Browse files Browse the repository at this point in the history
Bug 1837859: Allow Manila CSI controller to update volumesnapshotcontents/status
  • Loading branch information
openshift-merge-robot committed Jun 5, 2020
2 parents 0bdb708 + e34bcd9 commit 031e7bb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Expand Up @@ -349,6 +349,12 @@ spec:
- watch
- update
- delete
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- update
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down
6 changes: 6 additions & 0 deletions deploy/role.yaml
Expand Up @@ -265,6 +265,12 @@ rules:
- watch
- update
- delete
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- update
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down
5 changes: 5 additions & 0 deletions pkg/controller/maniladriver/manila_controllerplugin_rbac.go
Expand Up @@ -405,6 +405,11 @@ func generateManilaControllerPluginClusterRole() *rbacv1.ClusterRole {
Resources: []string{"volumesnapshotcontents"},
Verbs: []string{"create", "get", "list", "watch", "update", "delete"},
},
{
APIGroups: []string{"snapshot.storage.k8s.io"},
Resources: []string{"volumesnapshotcontents/status"},
Verbs: []string{"update"},
},
{
APIGroups: []string{"snapshot.storage.k8s.io"},
Resources: []string{"volumesnapshots"},
Expand Down

0 comments on commit 031e7bb

Please sign in to comment.