apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: argocd namespace: argocd annotations: argocd.argoproj.io/sync-wave: "-1" # Sync before other apps finalizers: - resources-finalizer.argocd.argoproj.io spec: project: default source: repoURL: https://git.mvzijl.nl/marco/veda.git targetRevision: applicationset-rewrite path: apps/argocd helm: releaseName: argocd valueFiles: - values.yaml destination: server: https://kubernetes.default.svc namespace: argocd syncPolicy: automated: prune: false # Be careful with pruning ArgoCD itself selfHeal: true # Auto-fix configuration drift syncOptions: - CreateNamespace=true - PruneLast=true - PrunePropagationPolicy=foreground ignoreDifferences: # Ignore certain fields that change frequently - group: apps kind: Deployment jsonPointers: - /spec/replicas # If using HPA - group: "" kind: Secret name: argocd-initial-admin-secret jsonPointers: - /data # Don't sync the initial password secret