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
Thuan Vo committed Aug 16, 2022
1 parent 1aa5745 commit 46dec7d
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 @@ -977,6 +977,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 @@ -1823,6 +1823,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 46dec7d

Please sign in to comment.