From a6c29df5967d79be2e0c266d494db9c2519f9b87 Mon Sep 17 00:00:00 2001 From: konsthol Date: Fri, 30 May 2025 15:39:01 +0300 Subject: [PATCH] Add ApplicationSet.yaml --- ApplicationSet.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ApplicationSet.yaml diff --git a/ApplicationSet.yaml b/ApplicationSet.yaml new file mode 100644 index 0000000..c8ac8be --- /dev/null +++ b/ApplicationSet.yaml @@ -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