-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Open
argoproj/gitops-engine
#754Labels
bugSomething isn't workingSomething isn't workingcomponent:application-controllerIssues related to the Application Controller componentIssues related to the Application Controller componentfeature:hooksIssue related to Argo Sync or Helm hooksIssue related to Argo Sync or Helm hooksversion:3.0Latest confirmed affected version is 3.0Latest confirmed affected version is 3.0workaroundThere's a workaround, might not be great, but existsThere's a workaround, might not be great, but exists
Description
Checklist:
- I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- I've included steps to reproduce the bug.
- I've pasted the output of
argocd version
.
Describe the bug
I have a Job (db migrations) with hook-weight == "-5" and another resource, let's say ConfigMap with hook-weight == "-10".
Job is long-running task, after the job finishes it seems that argocd can't properly finalize the sync process: it successfully removes CM but cant remove Job and eventually fails by timeout (context deadline).
This behavior is actual since I've upgraded to 3.x from 2.x
If I manually remove the finalizer from the Job, the synchronization process completes OK.
To Reproduce
Create Job with hook-weight == "-5", CM hook-weight == "-10".
Sync.
Expected behavior
ArgoCD should properly handle finalizer / helm-hooks
Screenshots
Version
v3.0.3+a14b012
Jerrimikkihvatai, yunasc, gjkamstra, ylorenzati, thibautcharry and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcomponent:application-controllerIssues related to the Application Controller componentIssues related to the Application Controller componentfeature:hooksIssue related to Argo Sync or Helm hooksIssue related to Argo Sync or Helm hooksversion:3.0Latest confirmed affected version is 3.0Latest confirmed affected version is 3.0workaroundThere's a workaround, might not be great, but existsThere's a workaround, might not be great, but exists