From d13b632070a0fb8b02995129f61af857d217e8f1 Mon Sep 17 00:00:00 2001 From: konsthol Date: Fri, 30 May 2025 16:46:35 +0300 Subject: [PATCH] Update root-set.yaml --- ApplicationSet.yaml | 29 ----------------------------- root-set.yaml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 29 deletions(-) delete mode 100644 ApplicationSet.yaml create mode 100644 root-set.yaml diff --git a/ApplicationSet.yaml b/ApplicationSet.yaml deleted file mode 100644 index 5f98ed4..0000000 --- a/ApplicationSet.yaml +++ /dev/null @@ -1,29 +0,0 @@ -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: argocd-apps/example-app - - path: argocd-apps/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 \ No newline at end of file diff --git a/root-set.yaml b/root-set.yaml new file mode 100644 index 0000000..bf5c361 --- /dev/null +++ b/root-set.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +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