mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* Add support for missingkey=error in ApplicationSets Signed-off-by: Radon Rosborough <[email protected]> * options for cluster generator too Signed-off-by: Michael Crenshaw <[email protected]> --------- Signed-off-by: Radon Rosborough <[email protected]> Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
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:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
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.path}}'
|
|
destination:
|
|
server: '{{.server}}'
|
|
namespace: '{{.path.basename}}'
|