Skip to content

Commit

Permalink
remove the argocd cluster creation
Browse files Browse the repository at this point in the history
  • Loading branch information
indresh-28 committed Nov 25, 2023
1 parent f9fabc9 commit 0a5d8b5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0a5d8b5

Please sign in to comment.