-
Notifications
You must be signed in to change notification settings - Fork 2
/
app-set-test.yaml
79 lines (77 loc) · 1.9 KB
/
app-set-test.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: faf-k8s
namespace: argocd
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:
- git:
repoURL: https://github.com/FAForever/gitops-stack.git
revision: develop
directories:
- path: 'apps/*'
- path: 'infra/*'
- path: 'ops/*'
template:
metadata:
name: '{{path.basenameNormalized}}'
spec:
project: "default"
destination:
server: https://kubernetes.default.svc
namespace: 'faf-{{path[0]}}'
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
sources:
- repoURL: https://github.com/FAForever/gitops-stack.git
targetRevision: develop
path: '{{path}}'
helm:
ignoreMissingValueFiles: true
valueFiles:
- /config/test.yaml
- '/{{path}}/values-test.yaml'
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster
namespace: argocd
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:
- git:
repoURL: https://github.com/FAForever/gitops-stack.git
revision: develop
directories:
- path: 'cluster/*'
template:
metadata:
name: '{{path.basenameNormalized}}'
spec:
project: "default"
destination:
server: https://kubernetes.default.svc
namespace: '{{path.basenameNormalized}}'
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
sources:
- repoURL: https://github.com/FAForever/gitops-stack.git
targetRevision: develop
path: '{{path}}'
helm:
ignoreMissingValueFiles: true
valueFiles:
- /config/test.yaml
- '/{{path}}/values-test.yaml'