Application Set Controller with ClusterGenerator delete all Application if Cluster Temporally fails to list secret #18480
Labels
bug/severity:criticial
A critical bug in ArgoCD, possibly resulting in data loss or severe degraded overall functionality
bug
Something isn't working
component:application-sets
Bulk application management related
Checklist:
argocd version
.Describe the bug
If the ApiServer fails to list Custer Secrets All applications are deleted ( and undeployed from target clusters if not set preserveResourcesOnDeletion)
To Reproduce
Create an ApplicationSet with ClusterGenerator, eg:
Expected behavior
Applications are not deleted if error occurs listing clusters, deletion shall occur only if the cluster list is empty.
Screenshots
Version
Logs
Logs of error listing ARGOCD Clusters from argocd-applicationset-controller
Logs of deletion from argocd-notifications-controller ( one per target cluster )
Logs of recreation from argocd-notifications-controller ( one per target cluster )
The text was updated successfully, but these errors were encountered: