More logs
This commit is contained in:
parent
7a8df55542
commit
b6c7add468
@ -313,12 +313,14 @@ func (r *RestoreSessionReconciler) Reconcile(ctx context.Context, req reconcile.
|
|||||||
restoreSession.Status.Targets = append(restoreSession.Status.Targets, targetStatus)
|
restoreSession.Status.Targets = append(restoreSession.Status.Targets, targetStatus)
|
||||||
switch target.Kind {
|
switch target.Kind {
|
||||||
case formolv1alpha1.SidecarKind:
|
case formolv1alpha1.SidecarKind:
|
||||||
|
log.V(0).Info("Next task is a Sidecard restore", "target", target)
|
||||||
if err := createRestoreInitContainer(target, backupSession.Status.Targets[nextTarget].SnapshotId); err != nil {
|
if err := createRestoreInitContainer(target, backupSession.Status.Targets[nextTarget].SnapshotId); err != nil {
|
||||||
log.V(0).Info("unable to create restore init container", "task", target)
|
log.V(0).Info("unable to create restore init container", "task", target)
|
||||||
targetStatus.SessionState = formolv1alpha1.Failure
|
targetStatus.SessionState = formolv1alpha1.Failure
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
case formolv1alpha1.JobKind:
|
case formolv1alpha1.JobKind:
|
||||||
|
log.V(0).Info("Next task is a Job restore", "target", target)
|
||||||
if err := createRestoreJob(target, backupSession.Status.Targets[nextTarget].SnapshotId); err != nil {
|
if err := createRestoreJob(target, backupSession.Status.Targets[nextTarget].SnapshotId); err != nil {
|
||||||
log.V(0).Info("unable to create restore job", "task", target)
|
log.V(0).Info("unable to create restore job", "task", target)
|
||||||
targetStatus.SessionState = formolv1alpha1.Failure
|
targetStatus.SessionState = formolv1alpha1.Failure
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user