From 46772c638b045fa7c8b60e7e83889d04cc41ec89 Mon Sep 17 00:00:00 2001 From: Sergiy Kulanov Date: Mon, 5 Feb 2024 11:29:37 +0200 Subject: [PATCH] fix: Fix string concatenation for generating gitopsRepoUrl (#25) Signed-off-by: Sergiy Kulanov Change-Id: I92418dacb84a9dd70205647a65463c519adde1f5 --- pkg/argocd/argoapplicationset_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/argocd/argoapplicationset_manager.go b/pkg/argocd/argoapplicationset_manager.go index 018990c..a1fca15 100644 --- a/pkg/argocd/argoapplicationset_manager.go +++ b/pkg/argocd/argoapplicationset_manager.go @@ -327,7 +327,7 @@ func (c *ArgoApplicationSetManager) getGitOpsRepo(ctx context.Context, ns string func generateTemplatePatch(pipeline, gitopsUrlPath, gitUser, gitHost string, sshPort int32) string { sshURL := fmt.Sprintf("ssh://%s@%s:%d", gitUser, gitHost, sshPort) - gitopsRepoUrl := fmt.Sprintf(sshURL, gitopsUrlPath) + gitopsRepoUrl := sshURL + gitopsUrlPath template := ` {{- if .customValues }} spec: