refactor(argocd): replace wave/layer/phase schemes with two-phase bootstrap + app-of-apps and document both CD scopes — fixes self-hosted-git chicken-egg and stale paths

This commit is contained in:
Story Crater Bot
2026-08-18 15:08:02 -07:00
parent 5b34e71111
commit 8f86a03828
13 changed files with 774 additions and 13 deletions
+28
View File
@@ -0,0 +1,28 @@
# Phase 1 entry point — the app-of-apps root.
# Apply once (kubectl apply -k k8s/argocd/root) then sync it; it renders every
# Application manifest under k8s/argocd/apps/ and those deploy the whole cluster
# in sync-wave order. Requires Forgejo to be serving the repo (Phase 0 first).
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: homelab-root
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
project: homelab
source:
repoURL: http://forgejo.riotpiao.com:3000/riotpiao.com/homelab.git
targetRevision: main
path: k8s/argocd/apps
directory:
recurse: false
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true