-
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
[GarbageCollector] Let kubectl delete rc and rs with DeleteOptions.OrphanDependents=false #30461
Conversation
GCE e2e build/test passed for commit bcc1b68. |
Is the reaper going to properly handle 404's? It's going to race with the garbage collector to delete all of the pods now, right? |
Reaper uses the scaler, which updates the rc.spec.replicas to 0, rc manager will deletes the pods. kubectl waits until all the pods are gone, then it sends the delete request for the RC. Garbage collector may still have the pods in its local cache and will try to delete them, it ignores the 404. So there is no race. |
OK, that sounds good. I guess the next step is to just get rid of the reaper, or to have it check the cluster version before running? We can turn that on in the future though. |
LGTM |
Yes. We also need to implement the waitForGCDone DeleteOption before moving kubectl to use GC. |
Reviewed 1 of 1 files at r1. Comments from Reviewable |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit bcc1b68. |
Automatic merge from submit-queue |
so that when the garbage collector is enabled, RC and RS are deleted immediately without waiting for the garbage collector to orphan the pods.
There is no user visible changes, so we don't need a release note.
cc @fabioy
This change is