forked from akuity/argocd-admin-training
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappset.yaml
29 lines (29 loc) · 787 Bytes
/
appset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: team-apps
spec:
goTemplate: true
generators:
- git:
repoURL: &repo https://github.com/<GITHUB_USERNAME>/argocd-admin-training.git
revision: HEAD
files:
- path: apps/*/*.yaml
template:
metadata:
name: '{{.path.basename}}-{{trimSuffix ".yaml" .path.filenameNormalized}}'
spec:
project: '{{.path.basename}}'
source:
repoURL: *repo
path: '{{.path.path}}/chart'
helm:
valueFiles:
- '../{{.path.filename}}'
destination:
name: in-cluster
namespace: '{{.path.basename}}-{{trimSuffix ".yaml" .path.filenameNormalized}}'
syncPolicy:
syncOptions:
- CreateNamespace=true