apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: monitoring-application
  namespace: argocd

spec:
  project: infrastructure
  source:
    repoURL: git@github.com:moll-re/bootstrap-k3s-infra.git
    targetRevision: main
    path: infrastructure/monitoring
  destination:
    server: https://kubernetes.default.svc
    namespace: monitoring
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - Replace=true
      # because the prometheus-operator CRDs are too large