github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/examples/design-doc/template-override-fasttemplate.yaml (about) 1 # App templates can also be defined as part of the generator's template stanza. Sometimes it is 2 # useful to do this in order to override the spec.template stanza, and when simple string 3 # parameterization are insufficient. In the below examples, the generators[].XXX.template is 4 # a partial definition, which overrides/patch the default template. 5 apiVersion: argoproj.io/v1alpha1 6 kind: ApplicationSet 7 metadata: 8 name: guestbook 9 spec: 10 generators: 11 - list: 12 elements: 13 - cluster: engineering-dev 14 url: https://1.2.3.4 15 template: 16 metadata: {} 17 spec: 18 project: "project" 19 source: 20 repoURL: https://github.com/infra-team/cluster-deployments.git 21 path: '{{cluster}}-override' 22 destination: {} 23 24 - list: 25 elements: 26 - cluster: engineering-prod 27 url: https://1.2.3.4 28 template: 29 metadata: {} 30 spec: 31 project: "project2" 32 source: 33 repoURL: https://github.com/infra-team/cluster-deployments.git 34 path: '{{cluster}}-override2' 35 destination: {} 36 37 template: 38 metadata: 39 name: '{{cluster}}-guestbook' 40 spec: 41 project: "project" 42 source: 43 repoURL: https://github.com/infra-team/cluster-deployments.git 44 targetRevision: HEAD 45 path: guestbook/{{cluster}} 46 destination: 47 server: '{{url}}' 48 namespace: guestbook