// ProcessRestore used to process the restore logic
ProcessRestore used to process the restore logic
// ProcessRestore used to process the restore logic
func (rm *Manager) ProcessRestore() error {
	restore, err := rm.restoreLister.Restores(rm.Namespace).Get(rm.RestoreName)
	if err != nil {
		klog.Errorf("can't find cluster %s restore %s CRD object, err: %v", rm, rm.RestoreName, err)
		return rm.StatusUpdater.Update(restore, &v1alpha1.RestoreCondition{
			Type:    v1alpha1.RestoreFailed,
			Status:  corev1.ConditionTrue,
			Reason:  "GetRestoreCRFailed",
			Message: err.Error(),
		})
	}
	if restore.Spec.BR == nil {
		return fmt.Errorf("no br config in %s", rm)
	}
	return rm.performRestore(restore.DeepCopy())
}
func ( rm * Manager ) ProcessRestore ( ) error { restore , err := rm . restoreLister . Restores ( rm . Namespace ) . Get ( rm . RestoreName ) if err != nil { klog . Errorf ( " " , rm , rm . RestoreName , err ) return rm . StatusUpdater . Update ( restore , & v1alpha1 . RestoreCondition { Type : v1alpha1 . RestoreFailed , Status : corev1 . ConditionTrue , Reason : " " , Message : err . Error ( ) , } ) } if restore . Spec . BR == nil { return fmt . Errorf ( " " , rm ) } return rm . performRestore ( restore . DeepCopy ( ) ) }
ProcessRestore used to process the restore logic
ProcessRestore used to process the restore logic