// updateStageStatus updates the target stage given a stage name, message and phase
updateStageStatus updates the target stage given a stage name, message and phase
// updateStageStatus updates the target stage given a stage name message and phase
func (r *ProgressiveSyncReconciler) updateStageStatus(ctx context.Context, name, message string, phase syncv1alpha1.StageStatusPhase, pr *syncv1alpha1.ProgressiveSync) {
	stageStatus := syncv1alpha1.NewStageStatus(
		name,
		message,
		phase,
	)
	nowTime := metav1.NewTime(time.Now())
	pr.SetStageStatus(stageStatus, &nowTime)
}
func ( r * ProgressiveSyncReconciler ) updateStageStatus ( ctx context . Context , name , message string , phase syncv1alpha1 . StageStatusPhase , pr * syncv1alpha1 . ProgressiveSync ) { stageStatus := syncv1alpha1 . NewStageStatus ( name , message , phase , ) nowTime := metav1 . NewTime ( time . Now ( ) ) pr . SetStageStatus ( stageStatus , & nowTime ) }
updateStageStatus updates the target stage given a stage name, message and phase
updateStageStatus updates the target stage given a stage name message and phase