From 78ee44b5e565d79de5f749b7cfcb878dbac660f4 Mon Sep 17 00:00:00 2001 From: konsthol Date: Fri, 30 May 2025 16:50:13 +0300 Subject: [PATCH] Update root-set.yaml --- root-set.yaml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/root-set.yaml b/root-set.yaml index bf5c361..666ef71 100644 --- a/root-set.yaml +++ b/root-set.yaml @@ -1,20 +1,27 @@ apiVersion: argoproj.io/v1alpha1 -kind: Application +kind: ApplicationSet metadata: name: apps-manager namespace: argocd spec: - project: default - source: - repoURL: "https://git.konsthol.eu/konsthol/argocdapps" - targetRevision: main - path: argocd-apps - destination: - server: "https://kubernetes.default.svc" - namespace: argocd - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - CreateNamespace=true + generators: + - directory: + path: argocd-apps + template: + metadata: + name: '{{path.basename}}' + spec: + project: default + source: + repoURL: "https://git.konsthol.eu/konsthol/argocdapps" + targetRevision: main + path: '{{path}}' + destination: + server: "https://kubernetes.default.svc" + namespace: '{{path.basename}}' + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true