Argo CD "SharedResourceWarning" managed by another Application in CI
Argo CD tracks which Application owns each resource. When two Applications claim the same object, it raises a SharedResourceWarning because both will try to reconcile it, producing flapping sync status and unexpected reverts.
What this error means
An Application shows a "SharedResourceWarning" condition naming the resource and the other Application that also manages it. The resource may flip between OutOfSync and Synced as both apps reconcile.
SharedResourceWarning: Deployment/prod/api is part of applications
"team-a-app" and "team-b-app"Common causes
Two Applications select the same resource
Overlapping source paths, globs, or namespaces cause the same manifest to be included in two Applications.
A resource was moved between apps without cleanup
A manifest migrated from one Application to another while the old app still tracks it via its resource-tracking label or annotation.
How to fix it
Give each resource exactly one owner
- Identify the two Applications named in the warning.
- Remove the resource from one source so only one Application renders it.
- Sync both apps so the tracking label points at a single owner.
argocd app get team-a-app --show-managed-fields
argocd app get team-b-appScope apps by path or namespace
Narrow each Application source path or destination namespace so their resource sets do not overlap.
spec:
source:
path: apps/team-a
destination:
namespace: team-aHow to prevent it
- Keep Application source paths and namespaces non-overlapping.
- Migrate a resource by removing it from the old app in the same change.
- Use distinct destinations so two apps never claim one object.