Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: ishitasequeira <[email protected]>
  • Loading branch information
ishitasequeira committed Oct 26, 2023
1 parent 67a82e2 commit 8c56f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/argocd/applicationset.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ func getArgoApplicationSetCommand(cr *argoproj.ArgoCD) []string {

if !cr.Spec.Repo.IsEnabled() {
if cr.Spec.ApplicationSet.RepoServer != nil && *cr.Spec.ApplicationSet.RepoServer != "" {
cmd = append(cmd, "--repo-server", *cr.Spec.ApplicationSet.RepoServer)
cmd = append(cmd, "--argocd-repo-server", *cr.Spec.ApplicationSet.RepoServer)
} else {
log.Error(fmt.Errorf("repo server configuration is disabled and repo server location not configured"), "repo server configuration is disabled and repo server location not configured")

}
} else {
cmd = append(cmd, "--repo-server", getRepoServerAddress(cr))
cmd = append(cmd, "--argocd-repo-server", getRepoServerAddress(cr))
}

cmd = append(cmd, "--loglevel")
Expand Down

0 comments on commit 8c56f98

Please sign in to comment.