Files
deploy/applicationset/examples/git-generator-directory/git-directories-example-fasttemplate.yaml
toyamaguandGitHub f249d0155e docs: fix examples for ArgoCD ApplicationSet Git Generator (#10857)
* Doc: ArgoCD ApplicationSet Git directory

Signed-off-by: toyamagu <[email protected]>

* Docs: use "my-project" rather than default project

Signed-off-by: toyamagu <[email protected]>

Signed-off-by: toyamagu <[email protected]>
2022-10-08 14:44:42 -04:00

28 lines
706 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-addons
namespace: argocd
spec:
generators:
- git:
repoURL: https://github.com/argoproj/argo-cd.git
revision: HEAD
directories:
- path: applicationset/examples/git-generator-directory/cluster-addons/*
template:
metadata:
name: '{{path.basename}}'
spec:
project: "my-project"
source:
repoURL: https://github.com/argoproj/argo-cd.git
targetRevision: HEAD
path: '{{path}}'
destination:
server: https://kubernetes.default.svc
namespace: '{{path.basename}}'
syncPolicy:
syncOptions:
- CreateNamespace=true