Skip to content
Latchkey

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.

argocd
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

  1. Identify the two Applications named in the warning.
  2. Remove the resource from one source so only one Application renders it.
  3. Sync both apps so the tracking label points at a single owner.
Terminal
argocd app get team-a-app --show-managed-fields
argocd app get team-b-app

Scope apps by path or namespace

Narrow each Application source path or destination namespace so their resource sets do not overlap.

application.yaml
spec:
  source:
    path: apps/team-a
  destination:
    namespace: team-a

How 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.

Frequently asked questions

What causes ""SharedResourceWarning ... another Application""?
Overlapping source paths, globs, or namespaces cause the same manifest to be included in two Applications.
How do I fix "SharedResourceWarning ... another Application"?
Give each resource exactly one owner

Related guides

References

Run this faster and cheaper on Latchkey managed runners - self-healing included. Start free → 30-day trial · No credit card