Created argocd-applicationset.yaml

This commit is contained in:
2026-01-08 07:12:02 +00:00
parent f421a23c59
commit 8cb4e26d3c

View File

@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: argocd-applicationset
namespace: argocd
spec:
syncPolicy:
preserveResourcesOnDeletion: true
goTemplate: true
generators:
- git:
repoURL: https://gitea.dontddos.me/dontddos/homelab.git
revision: HEAD
directories:
- path: kubernetes/*/*
template:
metadata:
name: '{{.path.basename}}'
spec:
project: default
source:
repoURL: https://gitea.dontddos.me/dontddos/homelab.git
path: '{{.path.path}}'
targetRevision: HEAD
destination:
server: "https://kubernetes.default.svc"
namespace: '{{index .path.segments 1}}'
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
allowEmpty: true
prune: true
selfHeal: true