A1: Replace per-repo Forgejo entries with https://forgejo.riotpiao.com/rock/* wildcard so onboarding never requires touching AppProject. A2: Add wave -1 Application for k8s/argocd/projects/ so it syncs before any Application references the AppProject. Also add kustomization.yaml to k8s/argocd/projects/ to make it renderable. Enabled by Stage 1 (A1, A2).
26 lines
716 B
YAML
26 lines
716 B
YAML
# Wave -1 — AppProject definitions (must sync before any Application that references them).
|
|
# Syncs k8s/argocd/projects/ which was previously applied by hand.
|
|
# Enabled by Stage 1 (A2).
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: argocd-projects
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "-1"
|
|
spec:
|
|
project: homelab
|
|
revisionHistoryLimit: 3
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
source:
|
|
repoURL: https://github.com/Riotpiaole/riotpiao.homelab.com.git
|
|
targetRevision: main
|
|
path: k8s/argocd/projects
|
|
destination:
|
|
server: https://kubernetes.default.svc
|