kubernetes/pkg/controller/namespace
Kubernetes Submit Queue 43093609c1 Merge pull request #31917 from derekwaynecarr/delete-pods-last
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.
2016-09-02 00:50:02 -07:00
..
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
namespace_controller_test.go only store typeMeta and objectMeta in the gc store 2016-08-08 17:23:13 -07:00
namespace_controller_utils.go Namespace controller deletes pods last 2016-09-01 17:04:54 -04:00
namespace_controller.go Ignore v1 bindings in namespace controller deletion 2016-09-01 16:10:51 -04:00