github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/examples/matrix/cluster-and-git-fasttemplate.yaml (about) 1 # This example demonstrates the combining of the git generator with a cluster generator 2 # The expected output would be an application per git directory and a cluster (application_count = git directory * clusters) 3 # 4 # 5 apiVersion: argoproj.io/v1alpha1 6 kind: ApplicationSet 7 metadata: 8 name: cluster-git 9 spec: 10 generators: 11 - matrix: 12 generators: 13 - git: 14 repoURL: https://github.com/argoproj/argo-cd.git 15 revision: HEAD 16 directories: 17 - path: applicationset/examples/matrix/cluster-addons/* 18 - clusters: 19 selector: 20 matchLabels: 21 argocd.argoproj.io/secret-type: cluster 22 template: 23 metadata: 24 name: '{{path.basename}}-{{name}}' 25 spec: 26 project: '{{metadata.labels.environment}}' 27 source: 28 repoURL: https://github.com/argoproj/argo-cd.git 29 targetRevision: HEAD 30 path: '{{path}}' 31 destination: 32 server: '{{server}}' 33 namespace: '{{path.basename}}'