Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

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

Closed
jpcosal opened this issue Oct 17, 2022 · 1 comment
Closed

Comments

@jpcosal
Copy link

jpcosal commented Oct 17, 2022

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
Copy link
Author

jpcosal commented Oct 25, 2022

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

@jpcosal jpcosal closed this as completed Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant