argoproj / applicationset

The ApplicationSet controller manages multiple Argo CD Applications as a single ApplicationSet unit, supporting deployments to large numbers of clusters, deployments of large monorepos, and enabling secure Application self-service.
https://argocd-applicationset.readthedocs.io/
Apache License 2.0
586 stars 279 forks source link

Merge generator where a generator can reference items of another one #606

Closed jpcosal closed 1 year ago

jpcosal commented 1 year ago

Very much like what's been added for the Matrix generator here, it would be nice to have the same for the Merge generator. Something like

  generators:
    - merge:
        mergeKeys:
          - name
        generators:
          - git:
              repoURL: https://github.com/my_org/my_repo.git
              revision: my_revision
              files:
                - path: path/*.yaml
          - git:
              repoURL: https://github.com/my_org/my_repo2.git
              revision: '{{sha}}'
              files:
                - path: path2/**/file.yaml

Notice the {{sha}} reference in the second generator.

cf original issue for merge generator here

This is currently not possible, if I'm not mistaken?

I'd gladly create a PR for that.

jpcosal commented 1 year ago

Reposting on https://github.com/argoproj/argo-cd