mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* docs: revert appset path.path and path.segments docs Signed-off-by: CI <[email protected]> * more Signed-off-by: CI <[email protected]>
34 lines
1010 B
YAML
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}}'
|