@@ -369,7 +369,7 @@ func (r *NamespaceScopeReconciler) createRoleForNSS(labels map[string]string, fr
369
369
},
370
370
Rules : []rbacv1.PolicyRule {
371
371
{
372
- Verbs : []string {"create" , "delete" , "get" , "list" , "patch" , "update" , "watch" },
372
+ Verbs : []string {"create" , "delete" , "get" , "list" , "patch" , "update" , "watch" , "deletecollection" },
373
373
APIGroups : []string {"*" },
374
374
Resources : []string {"*" },
375
375
},
@@ -797,7 +797,7 @@ func (r *NamespaceScopeReconciler) checkGetNSAuth() bool {
797
797
798
798
// Check if operator has namespace admin permission
799
799
func (r * NamespaceScopeReconciler ) checkNamespaceAdminAuth (namespace string ) bool {
800
- verbs := []string {"create" , "delete" , "get" , "list" , "patch" , "update" , "watch" }
800
+ verbs := []string {"create" , "delete" , "get" , "list" , "patch" , "update" , "watch" , "deletecollection" }
801
801
for _ , verb := range verbs {
802
802
sar := & authorizationv1.SelfSubjectAccessReview {
803
803
Spec : authorizationv1.SelfSubjectAccessReviewSpec {
0 commit comments