kubernetes/pkg/controller
Kubernetes Submit Queue aed912bf63 Merge pull request #48997 from johanneswuerbach/hpa-min
Automatic merge from submit-queue (batch tested with PRs 48997, 48595, 48898, 48711, 48972)

hpa: Prevent scaling below MinReplicas if desiredReplicas is zero

**What this PR does / why we need it**:
Prevent a HPA scaling below `minReplicas` if `desiredReplicas` is calculated as `0`.

Example events of a HPA continuously scaling between `1` and `MinReplicas`:
```
2h        59s        22    horizontal-pod-autoscaler            Normal        SuccessfulRescale    New size: 1; reason: All metrics below target
2h        29s        22    horizontal-pod-autoscaler            Normal        SuccessfulRescale    New size: 15; reason: Current number of replicas below Spec.MinReplicas
```

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

**Special notes for your reviewer**:

**Release note**:

```release-note
hpa: Prevent scaling below MinReplicas if desiredReplicas is zero
```
2017-07-17 13:23:47 -07:00
..
bootstrap run hack/update-all 2017-06-22 11:31:03 -07:00
certificates run hack/update-all 2017-06-22 11:31:03 -07:00
cloud run hack/update-all 2017-06-22 11:31:03 -07:00
cronjob deprecate created-by annotation for cronjob 2017-06-23 11:05:40 -07:00
daemon Merge pull request #47042 from gyliu513/event-count 2017-07-12 14:08:04 -07:00
deployment controller: cleanup complete deployments only 2017-07-11 19:20:14 +02:00
disruption run hack/update-all 2017-06-22 11:31:03 -07:00
endpoint remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
garbagecollector add approvers to pkg/controller/garbagecollector 2017-07-13 15:16:17 -07:00
history remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
job run hack/update-all 2017-06-22 11:31:03 -07:00
namespace run hack/update-all 2017-06-22 11:31:03 -07:00
node Merge pull request #47087 from ravisantoshgudimetla/node_controller_flake 2017-07-17 02:31:51 -07:00
podautoscaler hpa: Prevent scaling below MinReplicas if desiredReplicas is zero 2017-07-17 09:32:06 +02:00
podgc run hack/update-all 2017-06-22 11:31:03 -07:00
replicaset remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
replication remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
resourcequota run hack/update-all 2017-06-22 11:31:03 -07:00
route run hack/update-all 2017-06-22 11:31:03 -07:00
service remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
serviceaccount run hack/update-all 2017-06-22 11:31:03 -07:00
statefulset remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
ttl run hack/update-all 2017-06-22 11:31:03 -07:00
volume Fix flaky test Test_Run_OneVolumeAttachAndDetachMultipleNodesWithReadWriteMany 2017-07-11 18:21:50 +02:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
client_builder.go run hack/update-all 2017-06-22 11:31:03 -07:00
controller_ref_manager_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
controller_ref_manager.go revert 45764 2017-06-25 21:41:10 -07:00
controller_utils_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
controller_utils.go run hack/update-all 2017-06-22 11:31:03 -07: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