-
Notifications
You must be signed in to change notification settings - Fork 277
Cannot combine Git files and Git directories generators with matrix #475
Comments
@romuduck wouldn't a file generator with something like |
Allowing to prefix the variables in output of the generators would be nice and help using twice the same generator in a matrix generator. This could be done by adding an optional "name" field to generator for example, if present all outputs would be prefixed by |
@w4rgrum true, that would work. Do you have a use case that requires a git file * git directory matrix generator? |
@crenshaw-dev - I was actually wishing I could do this. My use-case is we have an appstore with multiple apps that will be deployed to every tenant. I've got my tenants defined as git files (provides basic parameters), and I would like to use git dirs generator to generate the list of helm templates to install. Right now, I'm having to use git files for tenant definition and a list generator to specify the applications to be deployed. It would be nice to have it automatically read the git directory structure to generate the list of apps to deploy. When I did try the git files * git paths - it seemed like it would work except that the variable names were not allowed to collide (eg.
|
@dh-apporto thanks for the example! That makes a lot of sense. Makes me think that something like a ConfigMap generator might make sense at some point, for folks who prefer one big JSON structure over directories and files. I think adding a prefix option is the simplest way to tackle this. If anyone's interesting in contributing that, it would be appreciated. If not, I'll see if I can carve out some time. |
@crenshaw-dev, I am happy to have a go at implementing this. |
I have a use case where our git file generator will grab all our cluster configs that contain certain information: gcpProject, gcpRegion and then use a directory generator to bring up our apps across all clusters. |
+1, I could use this feature also, any new about that? |
I have a very similar use case. Being able to name/prefix generators would be helpful for this. |
Being implemented here: argoproj/argo-cd#10523 |
Hello,
Current behavior
When using matrix generator, we cannot combine:
Probably obvious, but as both generators output a
path
key, but are browsing different sources, it results in following error:Expectation
I guess we should either update the documentation and/or provide a way to give precedence.
Thanks all
The text was updated successfully, but these errors were encountered: