While reading the Matric Generator: https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Generators-Matrix/ , I see we can combine two different Generators and deploy Applications on multiple Clusters at the same time.
For my use case where I have multiple folders in my Git Repo (Where I have my K8s resource yaml files) and I have 4 K8s clusters but I dont want all of my K8s yaml files in those folders to be deployed on all Clusters.
For example, this is my folder staructure:
https://www.test-gitlab.com/repo1/dev1
https://www.test-gitlab.com/repo1/dev2
Any my K8s Clusters are:
dev1
dev2
dev3 &
dev4
So from the above list, I want to target the files from dev1 folder to dev1 cluster and dev2 folder to dev2 cluster and so on.
Looks like by default, the Matric Generator (with git & cluster generator), it deploys all files from the provided path to all clusters.
How can I achieve this type of setup?
Cheers!!