Compare commits

..

No commits in common. "ea1c1bd2e31cc6f67621ed71659e738ca5f5d8c8" and "8975f77e5858ee167508ef0359c3b9d6cbaba6ee" have entirely different histories.

2 changed files with 2 additions and 7 deletions

View File

@ -376,15 +376,10 @@ func (r *BackupConfigurationReconciler) createRBACSidecar(sa corev1.ServiceAccou
Resources: []string{"restoresessions", "backupsessions", "backupconfigurations", "functions", "repoes"},
},
rbacv1.PolicyRule{
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
Verbs: []string{"get", "list", "watch"},
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"},

View File

@ -83,7 +83,7 @@ func (s Session) checkSessionState(
// We still want to run Finalize for all the targets (continue)
// but we also don't want to move the global BackupSession to Success (rewrite sessionState)
// When the Job is over, it will move the target state to Finalized and we'll be fine
defer func() { sessionState = waitState }()
defer func() { sessionState = "" }()
continue
default:
if i == len(tss)-1 {