Compare commits
No commits in common. "ea1c1bd2e31cc6f67621ed71659e738ca5f5d8c8" and "8975f77e5858ee167508ef0359c3b9d6cbaba6ee" have entirely different histories.
ea1c1bd2e3
...
8975f77e58
@ -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"},
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user