Files
deploy/applicationset/examples/matrix/cluster-and-git-fasttemplate.yaml
Michael CrenshawandGitHub 25e4ad3756 docs: revert appset path.path and path.segments docs (#10254)
* docs: revert appset path.path and path.segments docs

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

* more

Signed-off-by: CI <[email protected]>
2022-08-09 21:34:37 +00:00

34 lines
1010 B
YAML

# This example demonstrates the combining of the git generator with a cluster generator
# The expected output would be an application per git directory and a cluster (application_count = git directory * clusters)
#
#
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster-git
spec:
generators:
- matrix:
generators:
- git:
repoURL: https://github.com/argoproj/argo-cd.git
revision: HEAD
directories:
- path: applicationset/examples/matrix/cluster-addons/*
- clusters:
selector:
matchLabels:
argocd.argoproj.io/secret-type: cluster
template:
metadata:
name: '{{path.basename}}-{{name}}'
spec:
project: '{{metadata.labels.environment}}'
source:
repoURL: https://github.com/argoproj/argo-cd.git
targetRevision: HEAD
path: '{{path}}'
destination:
server: '{{server}}'
namespace: '{{path.basename}}'