func (r *ReconcileArgoCD) reconcileStatusPhase(cr *argoprojv1a1.ArgoCD) error {
	phase := "Unknown"

	if cr.Status.Server == "Running" {
		phase = "Available"
	} else {
		phase = "Pending"
	}

	if cr.Status.Phase != phase {
		cr.Status.Phase = phase
		return r.client.Status().Update(context.TODO(), cr)
	}
	return nil
}
// reconcileStatusPhase will ensure that the Status Phase is updated for the given ArgoCD.
reconcileStatusPhase will ensure that the Status Phase is updated for the given ArgoCD.
// reconcileStatusPhase will ensure that the Status Phase is updated for the given ArgoCD .
func (r *ReconcileArgoCD) reconcileStatusPhase(cr *argoprojv1a1.ArgoCD) error {
	phase := "Unknown"
	if cr.Status.Server == "Running" {
		phase = "Available"
	} else {
		phase = "Pending"
	}
	if cr.Status.Phase != phase {
		cr.Status.Phase = phase
		return r.client.Status().Update(context.TODO(), cr)
	}
	return nil
}
func ( r * ReconcileArgoCD ) reconcileStatusPhase ( cr * argoprojv1a1 . ArgoCD ) error { phase := " " if cr . Status . Server == " " { phase = " " } else { phase = " " } if cr . Status . Phase != phase { cr . Status . Phase = phase return r . client . Status ( ) . Update ( context . TODO ( ) , cr ) } return nil }
reconcileStatusPhase will ensure that the Status Phase is updated for the given ArgoCD.
reconcileStatusPhase will ensure that the Status Phase is updated for the given ArgoCD .