From ea1c1bd2e31cc6f67621ed71659e738ca5f5d8c8 Mon Sep 17 00:00:00 2001 From: Jean-Marc ANDRE Date: Mon, 17 Apr 2023 01:10:01 +0200 Subject: [PATCH] Added RBAC needed --- controllers/backupconfiguration_controller_helpers.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"},