File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
clusters/argo-svc.dd.soeren.cloud Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,18 @@ metadata:
4
4
name : " apps"
5
5
namespace : " argocd"
6
6
spec :
7
+ goTemplate : true
8
+ goTemplateOptions :
9
+ - " missingkey=error"
7
10
generators :
8
- - directory :
11
+ - git :
9
12
repoURL : " https://github.com/soerenschneider/k8s-gitops.git"
10
13
revision : " HEAD"
11
- path : " clusters/argo-svc.dd.soeren.cloud/apps/*"
14
+ directories :
15
+ - path : " clusters/argo-svc.dd.soeren.cloud/apps/*"
12
16
template :
13
17
metadata :
14
- name : ' {{path.basename}}'
18
+ name : ' {{. path.basename}}'
15
19
namespace : " argocd"
16
20
annotations :
17
21
argocd.argoproj.io/sync-wave : " 3"
20
24
source :
21
25
repoURL : " https://github.com/soerenschneider/k8s-gitops.git"
22
26
targetRevision : " HEAD"
23
- path : ' {{path}}'
27
+ path : ' {{.path. path}}'
24
28
destination :
25
29
server : " https://kubernetes.default.svc"
30
+ namespace : ' {{.path.basename}}'
26
31
syncPolicy :
27
32
automated :
28
33
prune : true
You can’t perform that action at this time.
0 commit comments