Add ApplicationSet.yaml

This commit is contained in:
2025-05-30 16:23:20 +03:00
parent a73933662e
commit 48ff8b7b3c

29
ApplicationSet.yaml Normal file
View File

@@ -0,0 +1,29 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: dynamic-apps
namespace: argocd
spec:
generators:
- git:
repoURL: https://git.konsthol.eu/konsthol/argocdapps
revision: HEAD
directories:
- path: example-app
- path: json-echo
template:
metadata:
name: "{{path.basename}}"
spec:
project: default
source:
repoURL: https://git.konsthol.eu/konsthol/argocdapps
path: "{{path}}"
targetRevision: HEAD
destination:
server: https://kubernetes.default.svc
namespace: "{{path.basename}}"
syncPolicy:
automated:
prune: true
selfHeal: true