apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: crafty
  namespace: argocd
  finalizers:
  - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  sources:
  - repoURL: https://github.com/Mayne0213/applications.git
    targetRevision: main
    path: crafty
  destination:
    server: https://kubernetes.default.svc
    namespace: crafty
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    retry:
      limit: 5
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
    managedNamespaceMetadata:
      labels:
        goldilocks.fairwinds.com/enabled: 'true'
    syncOptions:
    - CreateNamespace=true
