Skip to content

Commit

Permalink
fix(role): add back rule to access endpoints for CR
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Aug 29, 2022
1 parent f9b6560 commit 37bd42b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,11 @@ func NewRoleForCR(cr *operatorv1beta1.Cryostat) *rbacv1.Role {
Namespace: cr.Namespace,
},
Rules: []rbacv1.PolicyRule{
{
Verbs: []string{"get", "list", "watch"},
APIGroups: []string{""},
Resources: []string{"endpoints"},
},
{
Verbs: []string{"get"},
APIGroups: []string{""},
Expand Down
5 changes: 5 additions & 0 deletions internal/test/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,11 @@ func NewRole() *rbacv1.Role {
Namespace: "default",
},
Rules: []rbacv1.PolicyRule{
{
Verbs: []string{"get", "list", "watch"},
APIGroups: []string{""},
Resources: []string{"endpoints"},
},
{
Verbs: []string{"get"},
APIGroups: []string{""},
Expand Down

0 comments on commit 37bd42b

Please sign in to comment.