• Kubernetes Submit Queue's avatar
    Merge pull request #31917 from derekwaynecarr/delete-pods-last · 43093609
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Namespace controller deletes pods last
    
    I think this fixes https://github.com/kubernetes/kubernetes/issues/29308 or at least helps further reduce the incidence.
    
    This PR changes the order in which namespace controller prioritizes resources for deletion.  It deletes all resources before deleting pods.  The rationale for this change is to broadcast deletion of controllers that spawn pods first rather than trip those controllers up into thinking they should spawn more pods which would increase the risk of causing races with the `NamespaceLifecycle` admission plug-in.  Many of those controllers also are not rate-limited in the face of rejection, so rather than promote a situation where they are rejected, we promote a situation that removes those things first.
    43093609
Name
Last commit
Last update
..
doc.go Loading commit data...
namespace_controller.go Loading commit data...
namespace_controller_test.go Loading commit data...
namespace_controller_utils.go Loading commit data...