Skip to content

Commit

Permalink
operators/olm: filter RBAC lists by namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Jan 18, 2024
1 parent 134ccee commit 4202ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/operators/olm/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (a *Operator) permissionStatus(strategyDetailsDeployment *v1alpha1.Strategy
} else {
permissionMet, err = permissionsPreviouslyCreated[*rbacv1.Role, *rbacv1.RoleBinding](
perm, csv,
a.lister.RbacV1().RoleLister().List, a.lister.RbacV1().RoleBindingLister().List,
a.lister.RbacV1().RoleLister().Roles(namespace).List, a.lister.RbacV1().RoleBindingLister().RoleBindings(namespace).List,
)
}
if err != nil {
Expand Down

0 comments on commit 4202ee2

Please sign in to comment.