k8wiz
Argo CD
Hard
Troubleshooting & Debugging

A Git directory generator matches apps/*/* and names Applications '{{.path.basename}}'. Both apps/team-a/web and apps/team-b/web exist. What does the ApplicationSet controller do?

Select your answer:

Show answer and explanation

Answer: Creates neither and reports a duplicate name error

Explanation

The controller validates generated Applications before applying them and flags names that appear more than once, setting an ErrorOccurred condition with a message that the ApplicationSet contains applications with duplicate name: web. Because both entries share the same name, neither passes validation. Building the name from more than one segment, such as the team and the basename, avoids the collision.

Read more about Argo CD