-
Notifications
You must be signed in to change notification settings - Fork 279
Matrix generator where a generator can reference items of another one #530
Comments
This would be a great feature to have. Also have a similar use-case, but for merge generator. In this scenario, we could target specific clusters w/ specific configurations per cluster, without the need to modify the applicationSet (we could just continue modifying the git repository).
|
I agree, this would be really useful. Is anyone interested in opening a PR? |
Yeah, I'd be happy to give it a go. |
FYI, have gotten this working. Currently only the 2nd generator can reference the 1st, so
Anyways, example of a cluster-generator interpolated from a git-files' values below: |
@KojoRising What's the status of your implementation? I will most likely have a use case for this feature in the near future, pretty excited to see this hitting an official release :) |
@jannis-a - I'm working on it right now. argoproj/argo-cd#9080 I already have a working version, but a reviewer on my PR (above) pointed out an edge case I didn't anticipate. Aiming to have it out by the end of the week. Thanks for your interest tho! Feel like this will be useful for many folks. |
Also @jannis-a, I ran into a small problem on my PR (somewhat of an edge case). Feel free to take a look and provide some opinions on how I should tackle the problem. Thanks! |
@KojoRising Great, I will take a look at that PR :) |
Closing as awesome work has been done in argoproj/argo-cd#9080 |
I'm wondering if this would be possible that a generator use another's generator items.
For instance, imagine the following manifests structure on a GitOps repository:
Each instance being defined as a single Argo application. Thus 6 instances, 6 Argo applications.
Right now, I use a List generator with 6 items corresponding to the 6 variants.
I would like to be able to define a Matrix generator that would combine:
Something like (draft):
That's not possible for now, right? Or did I miss something?
The text was updated successfully, but these errors were encountered: