apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: postgres-backup-application
  namespace: argocd
spec:
  project: infrastructure
  source:
    repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
    targetRevision: main
    path: infrastructure/backup/postgres
  destination:
    server: https://kubernetes.default.svc
    namespace: backup
  syncPolicy:
    automated:
      prune: true
      selfHeal: true