38 lines
974 B
YAML
38 lines
974 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: tenants
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
generators:
|
|
- git:
|
|
repoURL: https://git.bouvais.lu/adrien/ctie-exercice
|
|
revision: main
|
|
files:
|
|
- path: "tenants/*/config.yaml"
|
|
template:
|
|
metadata:
|
|
name: 'tenant-{{.name}}'
|
|
spec:
|
|
project: tenants
|
|
sources:
|
|
- repoURL: https://git.bouvais.lu/adrien/ctie-exercice
|
|
targetRevision: main
|
|
path: charts/tenant
|
|
helm:
|
|
valueFiles:
|
|
- '$values/tenants/{{.name}}/config.yaml'
|
|
- repoURL: https://git.bouvais.lu/adrien/ctie-exercice
|
|
targetRevision: main
|
|
ref: values
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: 'tenant-{{.name}}'
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|