kubernetes/pkg/controller
Kubernetes Submit Queue fbf687c66c Merge pull request #52168 from mattjmcnaughton/mattjmcnaughton/49256-clear-status-message-when-zero-desired-pods
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 incorrect status msg in podautoscaler

**Which issue this PR fixes**

Fix #49256

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

When `ScalingLimited = true` for the `hpa`, there is an accompanying
status message, describing why scaling is limited. Previously if the desired
replica count was 0, and spec.minReplicas > 0, the status message
indicated "the desired replica count was less than the min replica
count". This was particularly confusing when `spec.MinReplicas = 1`. If
there was no `spec.minReplicas`, then the status message indicated "the
desired replica count was zero" which is more informative.

Update the calculation of status message so that if the desired replica
count is 0, we always display the clearer "the desired replica count was
zero" status message, even if spec.minReplicas > 0.

Signed-off-by: mattjmcnaughton <mattjmcnaughton@gmail.com>

```release-note
NONE
```
2017-09-23 13:23:18 -07:00
..
bootstrap controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
certificates controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
cloud Merge pull request #52176 from liggitt/heartbeat-timeout 2017-09-16 09:45:29 -07:00
cronjob Enable batch/v1beta1.CronJobs by default 2017-09-03 11:17:33 +02:00
daemon Merge pull request #52240 from mattjmcnaughton/mattjmcnaughton/do-not-import-apimachinery-from-staging 2017-09-23 09:08:26 -07:00
deployment Merge pull request #52240 from mattjmcnaughton/mattjmcnaughton/do-not-import-apimachinery-from-staging 2017-09-23 09:08:26 -07: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 #51705 from enj/enj/i/panic_timed_workers_test/51704 2017-09-23 01:47:02 -07:00
podautoscaler Fix incorrect status msg in podautoscaler 2017-09-13 09:27:38 -04:00
podgc Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
replicaset Remove kargakis from OWNERS, add tnozicka 2017-09-19 11:05:23 +02: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 Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
service controllers: simplify deepcopy calls 2017-08-29 19:21:24 +02:00
serviceaccount Add enj as reviewer to OWNERS 2017-08-17 20:42:46 -04:00
statefulset Remove kargakis from OWNERS, add tnozicka 2017-09-19 11:05:23 +02: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 Merge pull request #51387 from alrs/fix-storageos-swallowed-err 2017-09-13 11:10:24 -07:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD Update generated files - api, bazel, json 2017-09-04 09:02:35 +02:00
client_builder.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07: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_ref_manager.go Migrate to GetControllerOf from meta/v1 package 2017-08-06 22:41:58 +10:00
controller_utils_test.go CollisionCount should have type int32 across controllers that use it for collision avoidance 2017-08-18 10:48:12 +08:00
controller_utils.go Slow-start batch pod creation of rs, rc, ds, jobs 2017-09-01 09:23:43 -06: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