khuedoan-homelab/bootstrap/root/apps.yaml

29 lines
630 B
YAML
Raw Normal View History

2021-08-23 00:03:11 +07:00
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
2021-09-03 01:59:15 +07:00
name: apps
2021-08-23 00:03:11 +07:00
spec:
generators:
- git:
repoURL: https://github.com/khuedoan/homelab.git
revision: master
directories:
2021-09-03 01:59:15 +07:00
- path: apps/*
2021-08-23 00:03:11 +07:00
template:
metadata:
name: '{{path.basename}}'
spec:
destination:
name: in-cluster
namespace: '{{path.basename}}'
project: default
source:
repoURL: https://github.com/khuedoan/homelab.git
path: '{{path}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true