Skip to content

fix: render list with unique set of source repositories in argocd project#2833

Merged
merll merged 6 commits intomainfrom
APL-1431
Jan 9, 2026
Merged

fix: render list with unique set of source repositories in argocd project#2833
merll merged 6 commits intomainfrom
APL-1431

Conversation

@j-zimnowoda
Copy link
Contributor

📌 Summary

Many workloads can have exactly the same workload catalog. However the list of permitted source repositories should be contain only unique entries

🔍 Reviewer Notes

See the bin/compare.sh output

🧹 Checklist

  • Code is readable, maintainable, and robust.
  • Unit tests added/updated

@j-zimnowoda j-zimnowoda requested a review from Copilot January 8, 2026 13:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes duplicate entries in the ArgoCD project's source repository list by deduplicating repository URLs before rendering them in the template. Previously, workloads sharing the same catalog URL would result in duplicate repository entries.

Key Changes:

  • Collect all repository URLs (workload URLs, team repo, values repo) into a list
  • Apply deduplication using the uniq function before rendering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@Ani1357 Ani1357 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested by rendering locally and verified that there are no more duplicate entries

@j-zimnowoda j-zimnowoda requested a review from merll January 9, 2026 14:41
@merll merll enabled auto-merge (squash) January 9, 2026 14:50
@merll merll merged commit 2c6da6a into main Jan 9, 2026
11 checks passed
@merll merll deleted the APL-1431 branch January 9, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants