k8wiz
Argo CD
Hard
Syncing & Deployment

An ApplicationSet sets applicationsSync: create-update, but the controller runs with --policy sync and no policy override flag. A directory is removed from Git. What happens?

Select your answer:

Show answer and explanation

Answer: The Application is deleted, since the flag wins

Explanation

When the controller's --policy flag is set explicitly, it takes precedence over the per-ApplicationSet applicationsSync field unless --enable-policy-override is also enabled. With sync in effect, the controller deletes Applications that are no longer generated. Override is allowed by default only when --policy is left empty.

Read more about Argo CD