2026-07-22 23:56:34 -07:00
|
|
|
# Wave 6 — Database schemas + init jobs.
|
|
|
|
|
# CNPG operator and ddb-cluster are bootstrap-only (k8s/bootstrap-local/).
|
|
|
|
|
# This app manages ONLY the per-app databases and schema initialization.
|
|
|
|
|
# Dependencies: ddb-cluster (bootstrap wave 0), SOPS secrets (wave 4)
|
2026-07-20 08:22:53 -07:00
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
|
|
|
kind: Application
|
|
|
|
|
metadata:
|
|
|
|
|
name: data-schemas
|
|
|
|
|
namespace: argocd
|
|
|
|
|
annotations:
|
2026-07-22 23:56:34 -07:00
|
|
|
argocd.argoproj.io/sync-wave: "6"
|
2026-07-20 08:22:53 -07:00
|
|
|
spec:
|
|
|
|
|
project: homelab
|
|
|
|
|
source:
|
2026-07-21 16:03:38 -07:00
|
|
|
repoURL: https://forgejo.riotpiao.com/riotpiao.com/homelab.git
|
2026-07-20 08:22:53 -07:00
|
|
|
targetRevision: main
|
2026-07-22 23:56:34 -07:00
|
|
|
path: k8s/data/schemas # CHANGED from k8s/data to avoid ddb-cluster duplication
|
2026-07-20 08:22:53 -07:00
|
|
|
destination:
|
|
|
|
|
server: https://kubernetes.default.svc
|
|
|
|
|
namespace: ddb
|
|
|
|
|
syncPolicy:
|
|
|
|
|
automated:
|
|
|
|
|
prune: true
|
|
|
|
|
selfHeal: true
|