-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappset-test.yaml
51 lines (51 loc) · 1.35 KB
/
appset-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
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: jukebox-test-project
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- '*'
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: jukebox-test-appset
spec:
goTemplate: true
generators:
- git:
repoURL: "https://gitea-gitea.CLUSTER_DOMAIN/USER_NAME/mlops-gitops.git"
revision: main
files:
- path: model-deployments/test/**/config.yaml
template:
metadata:
name: "{{ .path.basename }}-test"
spec:
destination:
server: https://kubernetes.default.svc
namespace: USER_NAME-test
project: jukebox-test-project
sources:
- ref: app-values
repoURL: "https://gitea-gitea.CLUSTER_DOMAIN/USER_NAME/mlops-gitops.git"
targetRevision: main
- helm:
valueFiles:
- $app-values/model-deployments/test/{{ .path.basename }}/config.yaml
path: '{{ .chart_path }}'
repoURL: '{{ .repo_url | default "https://gitea-gitea.CLUSTER_DOMAIN/USER_NAME/mlops-helmcharts.git" }}'
targetRevision: '{{ .target_revision | default "main" }}'
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- Validate=true