-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BeforeHookCreation Hook Deletion Policy not working #14929
Comments
Facing the same issue |
Just curious, does your second trigger/sync happen before the Job is deleted due to "ttlSecondsAfterFinished"? Or after (meaning the Job has already been deleted)? |
Doing some searches shows: |
If someone could open an Argo CD PR pointing at the gitops-engine PR to show that tests pass, that'll help us move the gitops-engine PR forward. |
@djhoese Both ways, it gets the application stuck in progressing state. Meaning that 1) With ttlSecondsAfterFinished set to 4-5 mins-- and 2) ttlSecondsAfterFinished not set. |
I tried to reproduce the bug with the provided configurations of a |
awesome, but Which argocd version do you have? @sonamkshenoy |
We are seeing this too and seem to have correlated down to the inclusion of the |
Checklist:
argocd version
.Describe the bug
I have configured argocd hooks on job with following configurations, but the hook does not get the job deleted before the creation of new job after some update unlike mentioned over here in the doc. And which eventually causes the appliation to hang in progressing state and the job also not get recreated with new updates.
Ref: https://argo-cd.readthedocs.io/en/stable/user-guide/resource_hooks/#hook-deletion-policies
To Reproduce
Create a simple helm chart and put the following job in it and keep the helm chart within any of your github repos.
Prepare application set for deploying the helm chart, update the following manifest:
Create the application set:
The job should be created and run successfully. Next, you need to add some trigger in the job manifest and see the job (as hook) will not update itself automatically. But it will stuck in progressing state. And it will show the reason of the job sync, Pending Deletion.
![image](https://private-user-images.githubusercontent.com/105629434/258783809-1f9d44bf-ecce-4233-8453-cd4226397b6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNzQ5MzMsIm5iZiI6MTcyMTI3NDYzMywicGF0aCI6Ii8xMDU2Mjk0MzQvMjU4NzgzODA5LTFmO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gtQW16LVNpZ25hdHVyZT01MWFjMTRiNTg0NTMyZGQyMWIzYjg5MGQwYWY3YTQ0NmMyNzQwNzNhNTY0N2I2ZDE0ZDA2NmU5MzEwMTA2MDk0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tUKAVfH8Kkr2revjNgeITrGVR1ETaPtzCzbLGi8IBqg)
Expected behavior
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: