Skip to content

Commit

Permalink
Also allow to get viewer role as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Jan 26, 2024
1 parent 142f6cd commit 97a0ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/billingrbac/billingrbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func ClusterRoles(beName string, p ClusterRolesParams) (ar *rbacv1.ClusterRole,
APIGroups: []string{"rbac.authorization.k8s.io"},
Resources: []string{"clusterroles"},
Verbs: []string{"get"},
ResourceNames: []string{adminRoleName},
ResourceNames: []string{viewRoleName, adminRoleName},
})
}
adminRoleBinding := &rbacv1.ClusterRoleBinding{
Expand Down

0 comments on commit 97a0ae6

Please sign in to comment.