apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: orders
  namespace: example-gitops
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  source:
    repoURL: https://git.example.invalid/example-org/deploy.git
    targetRevision: v1.4.0
    path: overlays/production
    kustomize:
      images:
        - registry.example.invalid/example-org/orders:1.4.0
  destination:
    server: https://kubernetes.default.svc
    namespace: example-apps
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
      allowEmpty: false
    syncOptions:
      - CreateNamespace=true
      - ApplyOutOfSyncOnly=true
    retry:
      limit: 5
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
  ignoreDifferences:
    - group: apps
      kind: Deployment
      jsonPointers:
        - /spec/replicas
