k3s/pkg/kubelet/eviction
Kubernetes Submit Queue 20a4112e88 Merge pull request #46542 from derekwaynecarr/quota-ignore-pod-whose-node-lost
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
```
2017-09-15 00:11:10 -07:00
..
api Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
BUILD Ignore pods for quota that exceed deletion grace period 2017-09-11 13:31:52 -04:00
OWNERS
doc.go
eviction_manager.go soft eviction timer works 2017-09-06 13:01:49 -07:00
eviction_manager_test.go
helpers.go Ignore pods for quota that exceed deletion grace period 2017-09-11 13:31:52 -04:00
helpers_test.go
threshold_notifier_linux.go
threshold_notifier_unsupported.go Fix threshold notifier build tags 2017-08-18 15:54:31 -07:00
types.go