This repo reproduces bug where Argo CD will prune a resource which is not self-referential and Argo CD is configured with annotation based tracking.
Steps:
- Create an app named
self-ref-bug
with the source as the contents ofself-ref-bug
directory. kubectl create -f ./manual-apply
- Refresh the
self-ref-bug
application - Sync with prune and see the second ConfigMap get pruned.