Skip to content

Commit 9a9ff5b

Browse files
committed
add many apps
1 parent edc9f43 commit 9a9ff5b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: ApplicationSet
3+
metadata:
4+
name: many-apps-application-set
5+
namespace: argocd
6+
spec:
7+
generators:
8+
- git:
9+
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
10+
revision: HEAD
11+
directories:
12+
- path: application-sets/example-apps/*
13+
template:
14+
metadata:
15+
name: '{{path.basename}}'
16+
spec:
17+
# The project the application belongs to.
18+
project: default
19+
20+
# Source of the application manifests
21+
source:
22+
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
23+
targetRevision: HEAD
24+
path: '{{path}}'
25+
26+
# Destination cluster and namespace to deploy the application
27+
destination:
28+
server: https://kubernetes.default.svc
29+
namespace: '{{path.basename}}'
30+
31+
# Sync policy
32+
syncPolicy:
33+
syncOptions:
34+
- CreateNamespace=true
35+
automated: # automated sync by default retries failed attempts 5 times with following delays between attempts ( 5s, 10s, 20s, 40s, 80s ); retry controlled using `retry` field.
36+
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ).
37+
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ).
38+

0 commit comments

Comments
 (0)