-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Make NodeController recognize deletion tombstones #34786
Conversation
@@ -236,6 +236,7 @@ func NewNodeController( | |||
podInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ | |||
AddFunc: nc.maybeDeleteTerminatingPod, | |||
UpdateFunc: func(_, obj interface{}) { nc.maybeDeleteTerminatingPod(obj) }, | |||
DeleteFunc: nc.maybeDeleteTerminatingPod, |
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 don't understand this line. If we observed deletion of pod, why we would even want to try delete it again?
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.
Oh sorry, I had added a pending comment that I wasn't sure this line was right, but I forgot to hit "review changes." (After un-learning the need to "send changes" now I am having trouble adapting to needing to do it...). I'll delete it.
OK, PTAL. |
Can you please add release-note? (I think we need it for things to be cherrypicked). LGTM |
I've set |
Jenkins GKE smoke e2e failed for commit cd5779a. Full PR test history. The magic incantation to run this job again is |
Removing label |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Actually I'm not a fan of this PR - I'd rather do it directly when handler is registered. |
Automatic merge from submit-queue |
…-upstream-release-1.4 Automated cherry pick of #34786
Commit found in the "release-1.4" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…-of-#34786-upstream-release-1.4 Automated cherry pick of kubernetes#34786
cc/ @lavalamp @gmarek
This change is