# Wave 4 — Database schemas + init jobs. The CNPG operator and the ddb-cluster
# itself are Phase 0 (bootstrap); this app manages the additional schemas and
# the one-shot init job that seed databases for Authentik / Temporal / Vault.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: data-schemas
  namespace: argocd
  annotations:
    argocd.argoproj.io/sync-wave: "4"
spec:
  project: homelab
  source:
    repoURL: https://forgejo.riotpiao.com/riotpiao.com/homelab.git
    targetRevision: main
    path: k8s/data
  destination:
    server: https://kubernetes.default.svc
    namespace: ddb
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
