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

	deploy := newDeploymentWithSuffix("server", "server", cr)
	if argoutil.IsObjectFound(r.client, cr.Namespace, deploy.Name, deploy) {
		status = "Pending"

		if deploy.Status.ReadyReplicas == *deploy.Spec.Replicas {
			status = "Running"
		}
	}

	if cr.Status.Server != status {
		cr.Status.Server = status
		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) reconcileStatusServer(cr *argoprojv1a1.ArgoCD) error {
	status := "Unknown"
	deploy := newDeploymentWithSuffix("server", "server", cr)
	if argoutil.IsObjectFound(r.client, cr.Namespace, deploy.Name, deploy) {
		status = "Pending"
		if deploy.Status.ReadyReplicas == *deploy.Spec.Replicas {
			status = "Running"
		}
	}
	if cr.Status.Server != status {
		cr.Status.Server = status
		return r.client.Status().Update(context.TODO(), cr)
	}
	return nil
}
func ( r * ReconcileArgoCD ) reconcileStatusServer ( cr * argoprojv1a1 . ArgoCD ) error { status := " " deploy := newDeploymentWithSuffix ( " " , " " , cr ) if argoutil . IsObjectFound ( r . client , cr . Namespace , deploy . Name , deploy ) { status = " " if deploy . Status . ReadyReplicas == * deploy . Spec . Replicas { status = " " } } if cr . Status . Server != status { cr . Status . Server = status 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 .