-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: Add finalizer to workflow pod to prevent pod deleted
. Fixes #8783. Continuing Work of #9058
#12413
feat: Add finalizer to workflow pod to prevent pod deleted
. Fixes #8783. Continuing Work of #9058
#12413
Conversation
…rgoproj#8783 Continuing Work of argoproj#9058 Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
I'm surprised but I've just become aware that the Argo Server deletes Pods as part of |
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
…-ast/argo-workflows into feat/add-finalizer-to-workflow-pod Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
I agree. In my local tests, retried pods always have the
I believe the feature flag is intended for situations like the one described above. |
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Would you mind adding to the Description more information on how you decided on your approach and your investigation of corner cases? |
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
…erHandlers Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
…-ast/argo-workflows into feat/add-finalizer-to-workflow-pod Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a couple more comments, could you please address them? Just so that we are on the same page.
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved before waiting for e2e tests....will approve once they all do
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
…rgoproj#8783 Continuing Work of argoproj#9058 (argoproj#12413) Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
🍾 |
…rgoproj#8783 Continuing Work of argoproj#9058 (argoproj#12413) Signed-off-by: Atsushi Sakai <sakai.at24@gmail.com>
if workflow-controller stopped for a while, eg, maintaining or upgrading, and then workflows deleted by somebody, if this will still work properly? during the gap, some pods completed, but the finalizer have no chance to get removed, how can we ensure that pods can be deleted. |
You can't ensure the pods will be deleted. The deletion will hang until either the controller is started or someone through another means deletes the finalizer words on the pod. The point of this change is to do this, and prevent inconsistency of state between the workflow and pods. If you are happy with the alternative that a workflow may have unexpectedly missing pods you may delete the finalizer manually from the pods. This is scriptable. |
It is unnecessary for keeping consistency between workflow and pods, once workflow-controller has finished processing pods (that is I can make some optimizations for situation when pod's owner workflow has been deleted, and open a new PR for that. |
pod deleted
. Fixes #8783 Continuing Work of #9058
pod deleted
. Fixes #8783 Continuing Work of #9058pod deleted
. Fixes #8783. Continuing Work of #9058
Fixes #8783 Continuing Work of #9058
Motivation
Building upon the foundational work of #9058, I am advancing the implementation to address our needs.
see: #9058 (comment)
Modifications
Verification
ut and e2e tests