PostDelete hook not usable when deleting files used by generators #18070
Labels
bug
Something isn't working
component:application-sets
Bulk application management related
component:helm
component:hooks
version:2.11
Latest confirmed affected version is 2.11
Checklist:
argocd version
.Describe the bug
Using git generator in application set, which trigger application creation based on folder content with application configuration (helm in this case).
If this folder or some of its files needed to render the application manifest is deleted, application deletion is triggered properly, but the hook is not executed.
To Reproduce
helm template . --name-template application-test-3 --namespace application-test-3 --kube-version 1.26 --values <path to cached source>/application-test-3/app-values.yaml <api versions removed> --include-crds
failed exit status 1: Error: open /application-test-3/app-values.yaml: no such file or directory"To delete the application once all resources are removed from k8s by ArgoCD, you can remove finalizers section from Application metadata section, but this will not solve the main issue - that the post-delete is not run.
Expected behavior
The post-delete job should run and application get deleted.
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: