Skip to content

Commit 04b64c0

Browse files
convert app to applicationset
1 parent 07d121e commit 04b64c0

File tree

2 files changed

+32
-20
lines changed

2 files changed

+32
-20
lines changed
Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
1-
---
21
apiVersion: argoproj.io/v1alpha1
3-
kind: Application
2+
kind: ApplicationSet
43
metadata:
5-
name: "k8s-infra"
4+
name: "infra"
65
namespace: "argocd"
7-
annotations:
8-
argocd.argoproj.io/sync-wave: "2"
96
spec:
10-
project: "k8s-infra"
11-
source:
12-
repoURL: "https://github.com/soerenschneider/k8s-gitops.git"
13-
targetRevision: "HEAD"
14-
path: "clusters/argo-svc.dd.soeren.cloud/k8s-infra"
15-
destination:
16-
server: "https://kubernetes.default.svc"
17-
syncPolicy:
18-
automated:
19-
prune: true
20-
selfHeal: true
7+
goTemplate: true
8+
goTemplateOptions:
9+
- "missingkey=error"
10+
generators:
11+
- git:
12+
repoURL: "https://github.com/soerenschneider/k8s-gitops.git"
13+
revision: "HEAD"
14+
directories:
15+
- path: "clusters/argo-svc.dd.soeren.cloud/k8s-infra/*"
16+
template:
17+
metadata:
18+
name: '{{.path.basename}}'
19+
namespace: "argocd"
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "3"
22+
spec:
23+
project: "infra"
24+
source:
25+
repoURL: "https://github.com/soerenschneider/k8s-gitops.git"
26+
targetRevision: "HEAD"
27+
path: '{{.path.path}}'
28+
destination:
29+
server: "https://kubernetes.default.svc"
30+
namespace: '{{.path.basename}}'
31+
syncPolicy:
32+
automated:
33+
prune: true
34+
selfHeal: true
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
resources:
5-
- istio
6-
- openebs
7-
- reloader
4+
components:
5+
- ../../../../infra/priority

0 commit comments

Comments
 (0)