Add support for ignoreApplicationDifferences
resource customization key for ApplicationSet resources
#21714
Labels
ignoreApplicationDifferences
resource customization key for ApplicationSet resources
#21714
Summary
It would be very helpful to support an
ignoreApplicationDifferences
customization key for ApplicationSet resources in the same way other ignore logic (e.g. ignoreDifferences, ignoreResourceUpdates) works. This would allow users to ignore specific fields such as/spec/syncPolicy
or.spec.sources[].targetRevision
when comparing live vs. desired states in Argo CD.Motivation
When using ApplicationSet, there are certain fields (e.g., syncPolicy or targetRevision fields) that can get frequently updated or differ from the desired specification in ways the user wants to ignore. Currently, we can configure various ignore behaviors via "ignoreDifferences" or "ignoreResourceUpdates," but there's no dedicated mechanism for ignoring differences on ApplicationSet fields specifically.
For example, in the Argo CD ConfigMap (
argocd-cm
), we cannot specify:However, Argo CD does not yet recognize a key named
resource.customizations.ignoreApplicationDifferences.<group_kind>
to process these ignore configurations properly for ApplicationSet resources.Proposal
Enhance the
appendResourceOverridesFromSplitKeys
(and related logic) to handle a new customization typeignoreApplicationDifferences
. This would likely involve:ignoreDifferences
,ignoreResourceUpdates
) that processes theignoreApplicationDifferences
key.v1alpha1.OverrideIgnoreDiff
) and storing it on a new or existing field inResourceOverride
.ignoreApplicationDifferences
.The text was updated successfully, but these errors were encountered: