39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: infrastructure
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
generators:
|
|
- git:
|
|
repoURL: https://git.sorells.me/whentimeslows/home-services.git
|
|
revision: main
|
|
directories:
|
|
- path: infrastructure/*
|
|
- path: infrastructure/*/templates
|
|
exclude: true
|
|
template:
|
|
metadata:
|
|
name: 'infrastructure-{{.path.basename}}'
|
|
labels:
|
|
app.kubernetes.io/part-of: home-services
|
|
home-services.sorells.me/layer: infrastructure
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://git.sorells.me/whentimeslows/home-services.git
|
|
targetRevision: main
|
|
path: '{{.path.path}}'
|
|
helm:
|
|
releaseName: '{{.path.basename}}'
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: '{{.path.basename}}'
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|