Interview Prep/GitOps & Argo CD/OutOfSync Loops & Diff Problems

The app shows `SharedResourceWarning: Namespace/payments is part of applications argocd/payments-api and payments-worker`.

BeginnerTroubleshootingOutOfSync Loops & Diff Problems
Answer

Likely causes → Both apps render the same Namespace (or ConfigMap, ClusterRole).

Diagnose → argocd app manifests payments-api | grep -A3 'kind: Namespace' and the same for the other app.

Fix → Keep the resource in exactly one app (or use CreateNamespace=true and managedNamespaceMetadata in one app only) and remove it from the other.

Prevent → FailOnSharedResource=true in sync options turns the warning into a failure.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on OutOfSync Loops & Diff Problems