apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: velero
  namespace: argocd
  labels:
    env: dev
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  sources:
    - repoURL: 'https://vmware-tanzu.github.io/helm-charts'
      targetRevision: 5.2.2
      helm:
        releaseName: velero
        valueFiles:
          - $values/helm/values.yaml
      chart: velero
    - repoURL: cnoe://velero
      targetRevision: HEAD
      ref: values
  destination:
    server: "https://kubernetes.default.svc"
    namespace: velero
  syncPolicy:
    syncOptions:
      - CreateNamespace=true
    automated:
      prune: true
      selfHeal: true
