k3s/pkg/controller
Kubernetes Submit Queue 30eb1aa7c5
Merge pull request #60648 from bskiba/hpa-unready
Automatic merge from submit-queue (batch tested with PRs 60732, 60689, 60648, 60704). 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>.

Do not count failed pods as unready in HPA controller

**What this PR does / why we need it**:
Currently, when performing a scale up, any failed pods (which can be present for example in case of evictions performed by kubelet) will be treated as unready. Unready pods are treated as if they had 0% utilization which will slow down or even block scale up.

After this change, failed pods are ignored in all calculations. This way they do not influence neither scale up nor scale down replica calculations.

@MaciekPytel @DirectXMan12 

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #55630

**Special notes for your reviewer**:

**Release note**:
```
Stop counting failed pods as unready in HPA controller to avoid failed pods incorrectly affecting scale up replica count calculation.
```
2018-03-02 14:25:54 -08:00
..
bootstrap Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
certificates Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cloud Merge pull request #59842 from ixdy/update-rules_go-02-2018 2018-02-19 22:23:05 -08:00
clusterroleaggregation Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cronjob Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
daemon Added unscheduable node UT for DaemonSet. 2018-02-28 16:11:01 +08:00
deployment Add tests for Deployments Recreate strategy when there are pods in terminal state present 2018-02-24 14:29:56 +01:00
disruption Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
endpoint Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
garbagecollector Run hack/update-all.sh 2018-02-26 17:16:14 -08:00
history Merge pull request #59365 from ayushpateria/patch-sts 2018-02-27 10:21:00 -08:00
job Merge pull request #60202 from clamoriniere1A/feature/JobBackoffWithParallelism 2018-02-23 23:15:37 -08:00
namespace Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
nodeipam Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
nodelifecycle Merge pull request #60008 from k82cn/k8s_54313_2 2018-02-20 03:13:28 -08:00
podautoscaler Do not count failed pods as unready in HPA controller 2018-03-01 16:21:02 +01:00
podgc Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
replicaset Merge pull request #59634 from WanLinghao/replica_set_unused_function_remove 2018-02-20 12:18:19 -08:00
replication Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
resourcequota Merge pull request #57302 from lichuqiang/resourceQuota4extendedResource 2018-02-20 14:10:46 -08:00
route Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
service Merge pull request #60555 from zhangxiaoyu-zidif/add-unit-test-for-nodenames-slice-comparison 2018-02-28 10:39:18 -08:00
serviceaccount implement token authenticator for new id tokens 2018-02-27 17:20:46 -08:00
statefulset Merge pull request #59365 from ayushpateria/patch-sts 2018-02-27 10:21:00 -08:00
testutil Revert "add node shutdown taint" 2018-02-16 12:24:27 +01:00
ttl Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
util/node Revert "add node shutdown taint" 2018-02-16 12:24:27 +01:00
volume update bazel 2018-02-27 20:23:36 +08:00
.import-restrictions
BUILD generated code 2018-02-23 08:06:42 -08:00
OWNERS
client_builder.go remove duplicated import 2017-11-14 17:18:17 +08:00
controller_ref_manager.go Update the DaemonSet controller to use the apps/v1 API 2018-02-22 11:38:54 -08:00
controller_ref_manager_test.go
controller_utils.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
controller_utils_test.go Removed unused function. 2017-11-14 10:53:29 +02:00
doc.go
lookup_cache.go