• Kubernetes Submit Queue's avatar
    Merge pull request #46542 from derekwaynecarr/quota-ignore-pod-whose-node-lost · 20a4112e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 52442, 52247, 46542, 52363, 51781)
    
    Ignore pods for quota marked for deletion whose node is unreachable
    
    **What this PR does / why we need it**:
    Traditionally, we charge to quota all pods that are in a non-terminal phase.  We have a user report that noted the behavior change in kube 1.5 for the node controller to no longer force delete pods whose nodes have been lost.  Instead, the pod is marked for deletion, and the reason is updated to state that the node is unreachable.  The user expected the quota to be released.  If the user was at their quota limit, their application may not be able to create a new replica given the current behavior.  As a result, this PR ignores pods marked for deletion that have exceeded their grace period.
    
    **Which issue this PR fixes**
    xref https://bugzilla.redhat.com/show_bug.cgi?id=1455743
    fixes https://github.com/kubernetes/kubernetes/issues/52436
    
    **Release note**:
    ```release-note
    Ignore pods marked for deletion that exceed their grace period in ResourceQuota
    ```
    20a4112e
Name
Last commit
Last update
..
bootstrap Loading commit data...
certificates Loading commit data...
cloud Loading commit data...
cronjob Loading commit data...
daemon Loading commit data...
deployment Loading commit data...
disruption Loading commit data...
endpoint Loading commit data...
garbagecollector Loading commit data...
history Loading commit data...
job Loading commit data...
namespace Loading commit data...
node Loading commit data...
podautoscaler Loading commit data...
podgc Loading commit data...
replicaset Loading commit data...
replication Loading commit data...
resourcequota Loading commit data...
route Loading commit data...
service Loading commit data...
serviceaccount Loading commit data...
statefulset Loading commit data...
testutil Loading commit data...
ttl Loading commit data...
volume Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
client_builder.go Loading commit data...
controller_ref_manager.go Loading commit data...
controller_ref_manager_test.go Loading commit data...
controller_utils.go Loading commit data...
controller_utils_test.go Loading commit data...
doc.go Loading commit data...
lookup_cache.go Loading commit data...