diff --git a/controllers/backupconfiguration_controller_helpers.go b/controllers/backupconfiguration_controller_helpers.go index 18527a1..353f0e0 100644 --- a/controllers/backupconfiguration_controller_helpers.go +++ b/controllers/backupconfiguration_controller_helpers.go @@ -376,10 +376,15 @@ func (r *BackupConfigurationReconciler) createRBACSidecar(sa corev1.ServiceAccou Resources: []string{"restoresessions", "backupsessions", "backupconfigurations", "functions", "repoes"}, }, rbacv1.PolicyRule{ - Verbs: []string{"get", "list", "watch"}, + Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"}, APIGroups: []string{""}, Resources: []string{"secrets", "persistentvolumeclaims"}, }, + rbacv1.PolicyRule{ + Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"}, + APIGroups: []string{"batch"}, + Resources: []string{"jobs"}, + }, rbacv1.PolicyRule{ Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"}, APIGroups: []string{"formol.desmojim.fr"},