Skip to content

Commit

Permalink
Add 'list' and 'update' configmaps/secrets to workspace SA role
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Oct 3, 2023
1 parent 1db91dc commit 96b9c65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/workspace-capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ rules:
- secrets
verbs:
- get
- list
- create
- patch
- update
- delete
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- create
- patch
- update
- delete
- apiGroups:
- workspace.devfile.io
Expand Down
4 changes: 2 additions & 2 deletions pkg/provision/workspace/rbac/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ func generateDefaultRole(namespace string) *rbacv1.Role {
{
Resources: []string{"secrets"},
APIGroups: []string{""},
Verbs: []string{"get", "create", "patch", "delete"},
Verbs: []string{"get", "list", "create", "patch", "update", "delete"},
},
{
Resources: []string{"configmaps"},
APIGroups: []string{""},
Verbs: []string{"get", "create", "patch", "delete"},
Verbs: []string{"get", "list", "create", "patch", "update", "delete"},
},
{
Resources: []string{"devworkspaces"},
Expand Down

0 comments on commit 96b9c65

Please sign in to comment.