From 0a5d8b5f6710209dfd205f6bb3f7420e84a115f6 Mon Sep 17 00:00:00 2001 From: indresh-28 Date: Sat, 25 Nov 2023 09:37:53 +0530 Subject: [PATCH] remove the argocd cluster creation --- .../internal/crossplane/config_crossplane_app.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/capten/config-worker/internal/crossplane/config_crossplane_app.go b/capten/config-worker/internal/crossplane/config_crossplane_app.go index 37221f42..c1936402 100644 --- a/capten/config-worker/internal/crossplane/config_crossplane_app.go +++ b/capten/config-worker/internal/crossplane/config_crossplane_app.go @@ -125,10 +125,11 @@ func (cp *CrossPlaneApp) Configure(ctx context.Context, reqType string, req json func (cp *CrossPlaneApp) configureClusterEndpoint(ctx context.Context, req *model.CrossplaneClusterEndpoint) (status string, err error) { logger.Infof("configuring the cluster endpoint for %s", req.RepoURL) err = cp.helper.CreateCluster(ctx, req.Namespace, req.Endpoint, req.Name) - if err != nil { - return string(agentmodel.WorkFlowStatusFailed), errors.WithMessage(err, "failed to CreateCluster in argocd app") - } + // if err != nil { + // return string(agentmodel.WorkFlowStatusFailed), errors.WithMessage(err, "failed to CreateCluster in argocd app") + // } + logger.Infof("CreateCluster argocd err: ", err) accessToken, err := cp.helper.GetAccessToken(ctx, req.Id) if err != nil { return string(agentmodel.WorkFlowStatusFailed), errors.WithMessage(err, "failed to get token from vault")