From 92780cef3b2f348b9dbf40464f32c022f2fc72e6 Mon Sep 17 00:00:00 2001 From: HDW Date: Sun, 19 Apr 2026 18:15:18 +0200 Subject: [PATCH] feat: initial bootstrap manifests for argocd and gitea --- bootstrap/root-app.yaml | 17 ++++++++++------- bootstrap/root-infra.yaml | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 bootstrap/root-infra.yaml diff --git a/bootstrap/root-app.yaml b/bootstrap/root-app.yaml index 24c1b67..c16ff45 100644 --- a/bootstrap/root-app.yaml +++ b/bootstrap/root-app.yaml @@ -1,20 +1,23 @@ +# root-apps.yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: root-app + name: root-apps namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io + annotations: + argocd.argoproj.io/sync-wave: "2" # Läuft erst, wenn Infra steht spec: project: default source: repoURL: 'http://gitea-service.gitea.svc.cluster.local:3000/hdw/cluster-state.git' + path: apps targetRevision: HEAD - path: apps/ # WICHTIG: Das ist der Ordner mit den Kind-Apps + directory: + recurse: true destination: server: 'https://kubernetes.default.svc' - namespace: argocd # Argo CD muss sich selbst verwalten können + namespace: argocd syncPolicy: automated: - prune: true # Löscht Apps, wenn sie aus dem Repo entfernt werden - selfHeal: true # Korrigiert Abweichungen automatisch + prune: true + selfHeal: true diff --git a/bootstrap/root-infra.yaml b/bootstrap/root-infra.yaml new file mode 100644 index 0000000..0c7c0a0 --- /dev/null +++ b/bootstrap/root-infra.yaml @@ -0,0 +1,23 @@ +# root-infra.yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: root-infra + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "1" # Muss zuerst starten +spec: + project: default + source: + repoURL: 'http://gitea-service.gitea.svc.cluster.local:3000/hdw/cluster-state.git' + path: infrastructure + targetRevision: HEAD + directory: + recurse: true + destination: + server: 'https://kubernetes.default.svc' + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true