Interview Prep/GitOps & Argo CD/ApplicationSets, Rollouts & Image Updater

The ApplicationSet status shows `ApplicationSet argocd/team-apps contains applications with duplicate name: web`.

BeginnerTroubleshootingApplicationSets, Rollouts & Image Updater
Answer

Likely causes → Two generator results produce the same metadata.name, for example a git directory generator finding apps/web in two envs while the name template uses only {{.path.basename}}.

Diagnose → kubectl -n argocd get applicationset team-apps -o yaml | yq '.status.conditions'.

Fix → Make the name unique per element: name: '{{.path.basename}}-{{index .path.segments 1}}' or include the cluster name.

Prevent → Name template convention <app>-<env>-<cluster> for every ApplicationSet.

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

More on ApplicationSets, Rollouts & Image Updater