apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: cluster-infra namespace: argocd spec: generators: - git: repoURL: https://git.hnrx.net/homelab/rke2-single-node.git revision: HEAD directories: - path: 08_cluster_infrastructure/* template: metadata: name: '{{path.basename}}' spec: project: cluster-infra source: repoURL: https://git.hnrx.net/homelab/rke2-single-node.git path: '{{path}}' directory: recurse: true destination: server: https://kubernetes.default.svc namespace: '{{path.basename}}' syncPolicy: automated: {prune: true, selfHeal: true}