github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/examples/design-doc/applicationset.yaml (about)

     1  # This is an example of a typical ApplicationSet which uses the cluster generator.
     2  # An ApplicationSet is comprised with two stanzas:
     3  #  - spec.generator - producer of a list of values supplied as arguments to an app template
     4  #  - spec.template - an application template, which has been parameterized
     5  apiVersion: argoproj.io/v1alpha1
     6  kind: ApplicationSet
     7  metadata:
     8    name: guestbook
     9  spec:
    10    goTemplate: true
    11    goTemplateOptions: ["missingkey=error"]
    12    generators:
    13    - clusters: {}
    14    template:
    15      metadata:
    16        name: '{{.name}}-guestbook'
    17      spec:
    18        source:
    19          repoURL: https://github.com/infra-team/cluster-deployments.git
    20          targetRevision: HEAD
    21          chart: guestbook
    22        destination:
    23          server: '{{.server}}'
    24          namespace: guestbook