What are SharedResourceWarning and FailOnSharedResource?
IntermediateConceptSync Waves, Hooks, Health & Diffing
Answer
If two Applications render the same resource (same group, kind, namespace and name), they fight over it: each sync overwrites the other and tracking flips. Argo CD raises a SharedResourceWarning condition naming both apps. FailOnSharedResource=true in sync options makes the sync fail instead of silently taking ownership. Fix the root cause by giving each resource one owner (often a namespace or a shared ConfigMap declared twice).