github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/examples/git-generator-directory/excludes/git-directories-exclude-example.yaml (about)

     1  apiVersion: argoproj.io/v1alpha1
     2  kind: ApplicationSet
     3  metadata:
     4    name: cluster-addons
     5    namespace: argocd
     6  spec:
     7    goTemplate: true
     8    goTemplateOptions: ["missingkey=error"]
     9    generators:
    10    - git:
    11        repoURL: https://github.com/argoproj/argo-cd.git
    12        revision: HEAD
    13        directories:
    14        - path: applicationset/examples/git-generator-directory/excludes/cluster-addons/*
    15        - exclude: true
    16          path: applicationset/examples/git-generator-directory/excludes/cluster-addons/exclude-helm-guestbook
    17    template:
    18      metadata:
    19        name: '{{.path.basename}}'
    20      spec:
    21        project: "my-project"
    22        source:
    23          repoURL: https://github.com/argoproj/argo-cd.git
    24          targetRevision: HEAD
    25          path: '{{.path}}'
    26        destination:
    27          server: https://kubernetes.default.svc
    28          namespace: '{{.path.basename}}'
    29        syncPolicy:
    30          syncOptions:
    31          - CreateNamespace=true