40 lines
996 B
YAML
40 lines
996 B
YAML
# ArgoCD Root App-of-Apps — Forgejo Source (Final State)
|
|
# This replaces the GitHub mirror with Forgejo as the source of truth
|
|
# Apply this AFTER Forgejo is healthy and you've pushed the repo
|
|
#
|
|
# The circle is broken: ArgoCD → Forgejo works because both already exist
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: homelab-root
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
project: homelab
|
|
|
|
source:
|
|
repoURL: https://forgejo.riotpiao.com/riotpiao.com/homelab.git # Forgejo (post-cutover source of truth)
|
|
targetRevision: main
|
|
path: k8s/argocd/apps
|
|
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: argocd
|
|
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
allowEmpty: false
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true
|
|
retry:
|
|
limit: 5
|
|
backoff:
|
|
duration: 5s
|
|
factor: 2
|
|
maxDuration: 3m
|