Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 79a7008

Browse files
committed
Fix parser and persistence provider permissions
1 parent bc3fe87 commit 79a7008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator/controllers/execution/scan_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func (r *ScanReconciler) startParser(scan *executionv1.Scan) error {
273273

274274
rules := []rbacv1.PolicyRule{
275275
rbacv1.PolicyRule{
276-
APIGroups: []string{"scans.experimental.securecodebox.io"},
276+
APIGroups: []string{"execution.experimental.securecodebox.io"},
277277
Resources: []string{"scans/status"},
278278
Verbs: []string{"get", "patch"},
279279
},
@@ -529,7 +529,7 @@ func (r *ScanReconciler) startPersistenceProvider(scan *executionv1.Scan) error
529529

530530
rules := []rbacv1.PolicyRule{
531531
rbacv1.PolicyRule{
532-
APIGroups: []string{"scans.experimental.securecodebox.io"},
532+
APIGroups: []string{"execution.experimental.securecodebox.io"},
533533
Resources: []string{"scans"},
534534
Verbs: []string{"get"},
535535
},

0 commit comments

Comments
 (0)