apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: solitaire-server
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://git.aleshym.co/funman300/Ferrous-Solitaire.git
    targetRevision: deploy
    path: deploy
  destination:
    server: https://kubernetes.default.svc
    namespace: solitaire
  # Secrets are applied manually and must not be pruned by ArgoCD.
  ignoreDifferences:
    - group: ""
      kind: Secret
      name: matomo-secret
      namespace: solitaire
      jsonPointers:
        - /data
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
