apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: tidbcloud-root-app
  namespace: argocd
spec:
  destination:
    name: in-cluster
    namespace: argocd
  project: default
  source:
    repoURL: https://github.com/tidbcloud/app-delivery.git
    path: app-registry
    targetRevision: HEAD
  syncPolicy:
    automated: # set automatically sync policy https://argo-cd.readthedocs.io/en/stable/user-guide/auto_sync/
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - PruneLast=true
    retry:
      limit: 5
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
