Open gabrielfsousa opened 10 months ago
Generators only use the first pathParam.
Generators:
spec: goTemplate: true generators: - merge: mergeKeys: - merge generators: - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-cpm revision: HEAD files: - path: "elastic-agent/base/conf.yaml" - matrix: generators: - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-cpm revision: HEAD files: - path: "elastic-agent/targets/**/conf.yaml" pathParamPrefix: targets - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-k8s-clusters revision: HEAD files: - path: "targets/{{index .targets.path.segments 2}}/{{index .targets.path.segments 3}}/*.yaml" pathParamPrefix: clusters
Log:
Generators: this works, but i cant use because i need "../targets/**/conf.yaml" to override "../base/conf.yaml"
spec: goTemplate: true generators: - merge: mergeKeys: - merge generators: - matrix: generators: - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-cpm revision: HEAD files: - path: "weave-scope/targets/**/conf.yaml" pathParamPrefix: targets - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-k8s-clusters revision: HEAD files: - path: "targets/{{index .targets.path.segments 2}}/{{index .targets.path.segments 3}}/*.yaml" pathParamPrefix: clusters - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-cpm revision: HEAD files: - path: "weave-scope/base/conf.yaml"
also work with only matrix
spec: goTemplate: true generators: - matrix: generators: - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-cpm revision: 'master' files: - path: "k8spacket/targets/**/conf.yaml" pathParamPrefix: targets - git: repoURL: git@ssh.dev.azure.com:v3/NAME/GitOps/dr-k8s-clusters revision: 'master' files: - path: "targets/{{index .targets.path.segments 2}}/{{index .targets.path.segments 3}}/*.yaml" pathParamPrefix: clusters
PLEASE fix this !
ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and let us know if the issue is still present, please?
Generators only use the first pathParam.
WONT WORK
Generators:
Log:
WORKS
Generators: this works, but i cant use because i need "../targets/**/conf.yaml" to override "../base/conf.yaml"
also work with only matrix