forked from redhat-ai-services/ai-accelerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tenants-applicationset.yaml
48 lines (48 loc) · 1.44 KB
/
tenants-applicationset.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
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: tenants
namespace: openshift-gitops
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
argocd.argoproj.io/sync-options: Prune=false
spec:
generators:
- git:
repoURL: 'https://github.com/redhat-ai-services/ai-accelerator-qa.git'
revision: main
directories:
- path: tenants/*/*/overlays/patch-me-see-overlay
template:
metadata:
name: '{{path[1]}}-{{path[2]}}'
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
argocd.argoproj.io/sync-options: Prune=false
labels:
tenant: '{{path[1]}}'
spec:
project: tenants
syncPolicy:
automated:
prune: false
selfHeal: true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 20m
source:
repoURL: patch-me-see-clusters-overlays
targetRevision: patch-me-see-clusters-overlays
path: '{{path}}'
destination:
server: https://kubernetes.default.svc
ignoreDifferences:
- kind: Notebook
group: kubeflow.org
jqPathExpressions:
- .spec.template.spec.containers[] | select(.name == "oauth-proxy")
- .spec.template.spec.volumes[] | select(.name == "oauth-config")
- .spec.template.spec.volumes[] | select(.name == "tls-certificates")