mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
Automatic merge from submit-queue (batch tested with PRs 64695, 65982, 65908). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. switch delete strategy to background deletion **Release note**: ```release-note "kubectl delete" no longer waits for dependent objects to be deleted when removing parent resources ``` ### Before 1.11.0 - Resources that had client-side reapers in older versions of the client had all of their dependents deleted first. The parent resource itself was deleted *last*. This allowed the command to be re-entrant and was largely an artifact of it **having** to be done that way by a client-side reaper. ### After 1.11.0 (with this PR) - Resources that previously had client-side reapers are no longer deleted last (after their dependents). They are now instead deleted first. The garbage-collector server-side then deletes any dependents. - This means that the `delete` command can return, and the parent object can be deleted while child objects still exist. - This is okay because the child resources are eventually deleted by the garbage collector server-side. cc @liggitt @soltysh