The k3s-cluster-root app-of-apps has been in a continuous Synced<->OutOfSync oscillation (489 transitions in 24h). Each cycle, ArgoCD syncs the 'argocd' Application CRD, succeeds, then immediately detects drift because ArgoCD adds status/operation fields to Application resources at runtime. Adding ignoreDifferences for /status and /operation on Application resources stops the drift loop while keeping the app-of-apps functional.
31 lines
658 B
YAML
31 lines
658 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: k3s-cluster-root
|
|
namespace: argocd
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "-1"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://git.rogi.casa/roger/k3s-cluster.git
|
|
targetRevision: main
|
|
path: argocd/apps
|
|
directory:
|
|
recurse: true
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: argocd
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=false
|
|
ignoreDifferences:
|
|
- group: argoproj.io
|
|
kind: Application
|
|
jsonPointers:
|
|
- /status
|
|
- /operation
|