github.com/argoproj/argo-cd/v3@v3.2.1/applicationset/examples/git-generator-directory/git-directories-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/cluster-addons/* 15 template: 16 metadata: 17 name: '{{.path.basename}}' 18 spec: 19 project: "my-project" 20 source: 21 repoURL: https://github.com/argoproj/argo-cd.git 22 targetRevision: HEAD 23 path: '{{.path.path}}' 24 destination: 25 server: https://kubernetes.default.svc 26 namespace: '{{.path.basename}}' 27 syncPolicy: 28 syncOptions: 29 - CreateNamespace=true