applicationset icon indicating copy to clipboard operation
applicationset copied to clipboard

SCM Provider Generator: Add possibility to filter pathsDoesNotExist

Open daydy16 opened this issue 2 years ago • 3 comments

Would be awesome to filter not only if files/paths exists, but to also filter if file doesnt exist. We're using applicationsets with the scm-generator to create argo-apps when a helm-chart-repo is found in a specific gitlab group. Because there is no clean way to suspend/pause apps in argocd at the moment, we would like to add a .disabled file in the repo and tell the applicationset to only add apps where this disabled file doesnt exist.
In this way we can easily suspend apps temporarily without deleting the whole repo.

daydy16 avatar Mar 18 '22 09:03 daydy16

Seems like a good feature! Would you be interested in contributing the filter? I think you could reuse the existing client logic to detect 404s as a positive rather than negative result.

crenshaw-dev avatar Mar 22 '22 13:03 crenshaw-dev

I am afraid I am not enough developer for this. Could someone help me out here?

daydy16 avatar Apr 07 '22 07:04 daydy16

I can give it a try, lemme prioritise it and let u know

rishabh625 avatar Apr 07 '22 08:04 rishabh625