kubernetes/pkg/controller
Kubernetes Submit Queue 93b3469a1f Merge pull request #53690 from mattjmcnaughton/mattjmcnaughton/53670-fix-hpa-scaling-above-max-replicas
Automatic merge from submit-queue. 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>.

Fix hpa scaling above max replicas w/ scaleUpLimit

**What this PR does / why we need it**:

Fix a bug where `desiredReplicas` could be greater than `maxReplicas`
if the original value for `desiredReplicas > scaleUpLimit` and
`scaleUpLimit > maxReplicas`. Previously, when that happened, we would
scale up to `scaleUpLimit`, and then in the next auto-scaling run, scale
down to `maxReplicas`. Address this issue and introduce a regression
test.

**Which issue this PR fixes**

fixes #53670

**Release note**:
```release-note
Address a bug which allowed the horizontal pod autoscaler to allocate `desiredReplicas` > `maxReplicas` in certain instances.
```
2017-10-11 08:53:01 -07:00
..
bootstrap Using assertions 2017-10-10 22:44:12 -05:00
certificates controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
cloud Using assertions 2017-10-10 22:44:12 -05:00
cronjob Refactor cronjob test case with sets.String 2017-09-04 22:02:27 +08:00
daemon Merge pull request #51754 from huzhengchuan/fix/event_name 2017-10-04 13:13:15 -07:00
deployment Fix potential problem when scaling --replicas=0 2017-10-09 17:39:51 -04:00
disruption controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
endpoint controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
garbagecollector Remove GC rate limiter metrics 2017-09-21 19:23:27 -04:00
history Remove kargakis from OWNERS, add tnozicka 2017-09-19 11:05:23 +02:00
job Improve how JobController use queue for backoff 2017-09-07 17:14:47 +02:00
namespace add an starting info log of namespace controller. 2017-08-26 00:25:37 +08:00
node Merge pull request #52402 from yastij/nodecontroller-clean-backwards 2017-10-11 06:10:54 -07:00
podautoscaler Fix hpa scaling above max replicas w/ scaleUpLimit 2017-10-11 08:35:31 -04:00
podgc Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
replicaset remove replicaset unit tests that are converted to integration tests 2017-10-06 18:03:19 -07:00
replication Remove kargakis from OWNERS, add tnozicka 2017-09-19 11:05:23 +02:00
resourcequota Ignore pods for quota that exceed deletion grace period 2017-09-11 13:31:52 -04:00
route rename the name of eventsource in controller-manager 2017-09-04 23:30:59 +08:00
service Merge pull request #53487 from oracle/for/upstream/master/service-event-logging 2017-10-06 09:56:19 -07:00
serviceaccount Add enj as reviewer to OWNERS 2017-08-17 20:42:46 -04:00
statefulset Merge pull request #51754 from huzhengchuan/fix/event_name 2017-10-04 13:13:15 -07:00
testutil Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
ttl controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
volume Make sure we use rwlocks not just RLock 2017-10-10 17:52:55 -04:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD Using assertions 2017-10-10 22:44:12 -05:00
client_builder.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
controller_ref_manager.go Migrate to GetControllerOf from meta/v1 package 2017-08-06 22:41:58 +10:00
controller_ref_manager_test.go Merge pull request #50353 from zhangxiaoyu-zidif/Delete-redundant-expectError-for-controller-ref-test 2017-08-12 00:00:55 -07:00
controller_utils.go Slow-start batch pod creation of rs, rc, ds, jobs 2017-09-01 09:23:43 -06:00
controller_utils_test.go Using assertions 2017-10-10 22:44:12 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00