• Kubernetes Submit Queue's avatar
    Merge pull request #65908 from juanvallejo/jvallejo/switch-delete-strategy-background · 02921374
    Kubernetes Submit Queue authored
    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
    02921374
Name
Last commit
Last update
..
apply Loading commit data...
apps Loading commit data...
cmd Loading commit data...
explain Loading commit data...
genericclioptions Loading commit data...
metricsutil Loading commit data...
plugins Loading commit data...
polymorphichelpers Loading commit data...
proxy Loading commit data...
scheme Loading commit data...
util Loading commit data...
validation Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
apply.go Loading commit data...
autoscale.go Loading commit data...
autoscale_test.go Loading commit data...
clusterrolebinding.go Loading commit data...
clusterrolebinding_test.go Loading commit data...
conditions.go Loading commit data...
configmap.go Loading commit data...
configmap_test.go Loading commit data...
deployment.go Loading commit data...
deployment_test.go Loading commit data...
doc.go Loading commit data...
env_file.go Loading commit data...
env_file_test.go Loading commit data...
generate.go Loading commit data...
generate_test.go Loading commit data...
history.go Loading commit data...
history_test.go Loading commit data...
interfaces.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
pdb.go Loading commit data...
pdb_test.go Loading commit data...
priorityclass.go Loading commit data...
priorityclass_test.go Loading commit data...
quota.go Loading commit data...
quota_test.go Loading commit data...
rolebinding.go Loading commit data...
rolebinding_test.go Loading commit data...
rollback.go Loading commit data...
rollback_test.go Loading commit data...
rolling_updater.go Loading commit data...
rolling_updater_test.go Loading commit data...
rollout_status.go Loading commit data...
rollout_status_test.go Loading commit data...
run.go Loading commit data...
run_test.go Loading commit data...
scale.go Loading commit data...
scale_test.go Loading commit data...
secret.go Loading commit data...
secret_for_docker_registry.go Loading commit data...
secret_for_docker_registry_test.go Loading commit data...
secret_for_tls.go Loading commit data...
secret_for_tls_test.go Loading commit data...
secret_test.go Loading commit data...
service.go Loading commit data...
service_basic.go Loading commit data...
service_basic_test.go Loading commit data...
service_test.go Loading commit data...
serviceaccount.go Loading commit data...
serviceaccount_test.go Loading commit data...
sorter.go Loading commit data...
sorter_test.go Loading commit data...