Skip to content

Commit

Permalink
fix: Fix string concatenation for generating gitopsRepoUrl (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiy Kulanov <[email protected]>
Change-Id: I92418dacb84a9dd70205647a65463c519adde1f5
  • Loading branch information
SergK committed Feb 5, 2024
1 parent 9bad26e commit 46772c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/argocd/argoapplicationset_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 46772c6

Please sign in to comment.