func (r *ReconcileArgoCD) reconcileClusterCASecret(cr *argoprojv1a1.ArgoCD) error {
	secret := argoutil.NewSecretWithSuffix(cr.ObjectMeta, "ca")
	if argoutil.IsObjectFound(r.client, cr.Namespace, secret.Name, secret) {
		return nil // Secret found, do nothing
	}

	secret, err := newCASecret(cr)
	if err != nil {
		return err
	}

	if err := controllerutil.SetControllerReference(cr, secret, r.scheme); err != nil {
		return err
	}
	return r.client.Create(context.TODO(), secret)
}
// reconcileClusterCASecret ensures the CA Secret is created for the ArgoCD cluster.
reconcileClusterCASecret ensures the CA Secret is created for the ArgoCD cluster.
// reconcileClusterCASecret ensures the CA Secret is created for the ArgoCD cluster .
func (r *ReconcileArgoCD) reconcileClusterCASecret(cr *argoprojv1a1.ArgoCD) error {
	secret := argoutil.NewSecretWithSuffix(cr.ObjectMeta, "ca")
	if argoutil.IsObjectFound(r.client, cr.Namespace, secret.Name, secret) {
		return nil 
	}
	secret, err := newCASecret(cr)
	if err != nil {
		return err
	}
	if err := controllerutil.SetControllerReference(cr, secret, r.scheme); err != nil {
		return err
	}
	return r.client.Create(context.TODO(), secret)
}
func ( r * ReconcileArgoCD ) reconcileClusterCASecret ( cr * argoprojv1a1 . ArgoCD ) error { secret := argoutil . NewSecretWithSuffix ( cr . ObjectMeta , " " ) if argoutil . IsObjectFound ( r . client , cr . Namespace , secret . Name , secret ) { return nil } secret , err := newCASecret ( cr ) if err != nil { return err } if err := controllerutil . SetControllerReference ( cr , secret , r . scheme ) ; err != nil { return err } return r . client . Create ( context . TODO ( ) , secret ) }
reconcileClusterCASecret ensures the CA Secret is created for the ArgoCD cluster.
reconcileClusterCASecret ensures the CA Secret is created for the ArgoCD cluster .
// Secret found, do nothing