From ce077f7f3a34e2534de14da4ebb7ad628c56f90f Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sat, 11 May 2024 14:06:46 +0200 Subject: [PATCH] feat(apps): add app-of-apps and app-of-projects --- apps/cd/app-of-apps.yaml | 22 ++++++++++++++++++++++ apps/cd/app-of-projects.yaml | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 apps/cd/app-of-apps.yaml create mode 100644 apps/cd/app-of-projects.yaml diff --git a/apps/cd/app-of-apps.yaml b/apps/cd/app-of-apps.yaml new file mode 100644 index 0000000..4dc8fa0 --- /dev/null +++ b/apps/cd/app-of-apps.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-apps + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + project: cd + syncPolicy: + automated: + prune: true + selfHeal: true + source: + path: apps/ + directory: + recurse: true + repoURL: git@gitlab.mareshq.com:hq/cthulhunetes/gitops.git + targetRevision: HEAD + destination: + server: "https://kubernetes.default.svc" + namespace: default diff --git a/apps/cd/app-of-projects.yaml b/apps/cd/app-of-projects.yaml new file mode 100644 index 0000000..f49620e --- /dev/null +++ b/apps/cd/app-of-projects.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-projects + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-10" +spec: + project: cd + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + source: + path: projects/ + repoURL: git@gitlab.mareshq.com:hq/cthulhunetes/gitops.git + targetRevision: HEAD + destination: + server: "https://kubernetes.default.svc" + namespace: default