You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argo CD diffs: server-side diff and ignoreDifferences for fields that the cluster adds or mutates #217
"kubernetes always adds metadata to objects created - and argocd will cry of differences - so did you plan to ignore differences in the argocd application yaml?"
The design today
docs/02, "On the cluster": Argo CD compares only the keys in Git, so keys that controllers add later (OpenShift's openshift.io/sa.scc.*, the pod-security sync labels, kubernetes.io/metadata.name) never show as drift. Each rendered Namespace carries argocd.argoproj.io/sync-options: Prune=confirm,ServerSideApply=true (cmapi/src/cmapi/core/render/manifests.py:30). There is no ignoreDifferences in the planned Applications. Nothing of this is measured: no Argo CD runs for cmapi yet (Wave 2; #157).
The gaps to close in Wave 2
Defaults inside fields that are in Git. The API server can default or normalise values inside objects that cmapi renders (quantities in ResourceQuota and LimitRange, LimitRange defaults). Argo CD's client-side diff can report these. Research Argo CD's server-side diff (ServerSideDiff=true as a compare option on the Application or the resource) for the Argo CD version the hub runs, and turn it on for the cluster Applications if it fits.
Mutations by admission controllers. If a Kyverno MutatingPolicy (Kyverno policies generated from cmapi's configuration, with approved per-namespace overrides #212) or another webhook changes a field that is in Git, Argo CD sees a difference on every reconcile. Decide between server-side diff and an ignoreDifferences entry (managedFieldsManagers or jqPathExpressions) with RespectIgnoreDifferences=true, so a sync does not undo the mutation.
Measure it. On kind (Wave 2) and then CRC: create a namespace through cmapi, let OpenShift and Kyverno add their fields, and show that the Application stays Synced and Healthy; then change a Git-owned key by hand and show self-heal reverts it, and add an unmanaged key by hand and show it stays and appears in the drift report.
Record the decision and its sources (the Argo CD documentation for the pinned version) in docs/reviews/, and update docs/02, "On the cluster".
Activity
Records: the owner's decisions of 2026-11-14 (#215, three instances, #…