Skip to content

Commit 4202ee2

Browse files
operators/olm: filter RBAC lists by namespace
Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent 134ccee commit 4202ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/controller/operators/olm/requirements.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func (a *Operator) permissionStatus(strategyDetailsDeployment *v1alpha1.Strategy
312312
} else {
313313
permissionMet, err = permissionsPreviouslyCreated[*rbacv1.Role, *rbacv1.RoleBinding](
314314
perm, csv,
315-
a.lister.RbacV1().RoleLister().List, a.lister.RbacV1().RoleBindingLister().List,
315+
a.lister.RbacV1().RoleLister().Roles(namespace).List, a.lister.RbacV1().RoleBindingLister().RoleBindings(namespace).List,
316316
)
317317
}
318318
if err != nil {

0 commit comments

Comments
 (0)