stage1: A1-A2 AppProject and projects Application
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).
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user