ApplicationSet: applicationsSync: create-update
still deletes applications
#16838
Labels
bug
Something isn't working
component:application-sets
Bulk application management related
component:sync
Checklist:
argocd version
.Describe the bug
When using a list generator in an AppSet, I wanted to exercise the
applicationsSync
policy to see if adding an element to the list out of band would be reverted by the AppSet controller. If I mutate the generator's list manually in this way, the additional elements always get deleted.From my understanding of the documentation, the
create-update
should not prune anything, correct?To Reproduce
kubectl
. The 2nd application starts coming up in the new namespace.Expected behavior
Seems like the intent of the
applicationsSync
would suggest that the 2nd element (added OOB) would not get pruned.My assumption is that this is because the
applicationsSync
policy is evaluated between syncs from source control, as opposed to diffing the actual resource in etcd. Is that correct?From my interpretation of the docs, it looks at when the generator's output has changed and in this scenario it technically has, albeit from outside source control. I understand that this is kind of an abnormal case, so just trying to better understand the behavior.
Version
argoCD version:
2.8.0
helm chart version:
5.43.4
Logs
The text was updated successfully, but these errors were encountered: