github.com/argoproj/argo-cd/v2@v2.10.9/applicationset/examples/clusterDecisionResource/ducktype-example.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: ApplicationSet
     3  metadata:
     4    name: book-import
     5  spec:
     6    goTemplate: true
     7    goTemplateOptions: ["missingkey=error"]
     8    generators:
     9      - clusterDecisionResource:
    10          configMapRef: ocm-placement
    11          name: test-placement
    12          requeueAfterSeconds: 30
    13    template:
    14      metadata:
    15        name: '{{.clusterName}}-book-import'
    16      spec:
    17        project: "default"
    18        source:
    19          repoURL: https://github.com/open-cluster-management/application-samples.git
    20          targetRevision: HEAD
    21          path: book-import
    22        destination:
    23          name: '{{.clusterName}}'
    24          namespace: bookimport
    25        syncPolicy:
    26          automated:
    27            prune: true
    28          syncOptions:
    29            - CreateNamespace=true