Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Fix apigroups for volumesnapshots psa RBAC (#4547)
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Kinni <[email protected]>
  • Loading branch information
Deepak Kinni authored Apr 6, 2023
1 parent 7cf3455 commit 4b16cc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/controllers/csi/vspherecsiconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var providerServiceAccountRBACRules = []rbacv1.PolicyRule{
Verbs: []string{"list"},
},
{
APIGroups: []string{""},
APIGroups: []string{"snapshot.storage.k8s.io"},
Resources: []string{"volumesnapshots"},
Verbs: []string{"create", "delete", "get", "list", "patch"},
},
Expand Down
10 changes: 10 additions & 0 deletions packages/addons-manager/bundle/config/upstream/addons-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ rules:
- get
- update
- patch
- apiGroups:
- "snapshot.storage.k8s.io"
resources:
- volumesnapshots
verbs:
- create
- delete
- get
- list
- patch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit 4b16cc4

Please sign in to comment.