Feedback

Chat Icon

GitOps the Hard Way, with Argo CD

Build Real GitOps Pipelines From Empty Clusters to Automated Deploys

Sync Policy: Every Field, Every Sync Option, Every Annotation
56%

Failing the Sync When Two Applications Manage the Same Resource

The FailOnSharedResource option makes a sync fail when it finds a resource that another Application already manages.

A shared resource is a resource managed by more than one Argo CD Application. By default, if a resource is tracked by more than one Application, the sync proceeds anyway, and the two Applications quietly fight over it, each one reverting the other's changes. Setting FailOnSharedResource=true makes the sync fail the moment it detects a resource already tracked by another Application, so you catch the conflict instead of debugging the flapping later. The default is false.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: todo-app
  namespace: argocd
spec:
  destination:
    namespace: default
    server: https://kubernetes.default.svc
  project

GitOps the Hard Way, with Argo CD

Build Real GitOps Pipelines From Empty Clusters to Automated Deploys

Enroll now to unlock all content and receive all future updates for free.