mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
data mover ms new controller
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -198,8 +198,7 @@ func (s *dataMoverRestore) run() {
|
||||
}
|
||||
}()
|
||||
|
||||
// TODOOO: call s.runDataPath()
|
||||
time.Sleep(time.Duration(1<<63 - 1))
|
||||
s.runDataPath()
|
||||
}
|
||||
|
||||
func (s *dataMoverRestore) runDataPath() {
|
||||
|
||||
@@ -336,7 +336,7 @@ func (r *DataDownloadReconciler) runCancelableDataPath(ctx context.Context, asyn
|
||||
return r.errorOut(ctx, dd, err, "error to initialize asyncBR", log)
|
||||
}
|
||||
|
||||
log.Infof("async restore init for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName)
|
||||
log.Infof("async restore init for pod %s, volume %s", res.ByPod.HostingPod.Name, res.ByPod.VolumeName)
|
||||
|
||||
if err := asyncBR.StartRestore(dd.Spec.SnapshotID, datapath.AccessPoint{
|
||||
ByPath: res.ByPod.VolumeName,
|
||||
@@ -344,7 +344,7 @@ func (r *DataDownloadReconciler) runCancelableDataPath(ctx context.Context, asyn
|
||||
return r.errorOut(ctx, dd, err, fmt.Sprintf("error starting async restore for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName), log)
|
||||
}
|
||||
|
||||
log.Info("Async restore started for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName)
|
||||
log.Infof("Async restore started for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName)
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -347,7 +347,7 @@ func (r *DataUploadReconciler) runCancelableDataUpload(ctx context.Context, asyn
|
||||
return r.errorOut(ctx, du, err, "error to initialize asyncBR", log)
|
||||
}
|
||||
|
||||
log.Infof("async backup init for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName)
|
||||
log.Infof("async backup init for pod %s, volume %s", res.ByPod.HostingPod.Name, res.ByPod.VolumeName)
|
||||
|
||||
if err := asyncBR.StartBackup(datapath.AccessPoint{
|
||||
ByPath: res.ByPod.VolumeName,
|
||||
@@ -355,7 +355,7 @@ func (r *DataUploadReconciler) runCancelableDataUpload(ctx context.Context, asyn
|
||||
return r.errorOut(ctx, du, err, fmt.Sprintf("error starting async backup for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName), log)
|
||||
}
|
||||
|
||||
log.Info("Async backup started for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName)
|
||||
log.Infof("Async backup started for pod %s, volume %s", res.ByPod.HostingPod, res.ByPod.VolumeName)
|
||||
return ctrl.Result{}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user