k3s/pkg/controller/podautoscaler
mattjmcnaughton dc8df2701b Fix incorrect status msg in podautoscaler
Fix #49256

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>
2017-09-13 09:27:38 -04:00
..
metrics Merge pull request #50708 from DirectXMan12/versions/autoscaling-v2beta1 2017-09-06 15:46:24 -07:00
BUILD Merge pull request #50708 from DirectXMan12/versions/autoscaling-v2beta1 2017-09-06 15:46:24 -07:00
OWNERS Add approvers to owners file for hpa 2017-07-18 13:23:43 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
horizontal.go Fix incorrect status msg in podautoscaler 2017-09-13 09:27:38 -04:00
horizontal_test.go Merge pull request #50708 from DirectXMan12/versions/autoscaling-v2beta1 2017-09-06 15:46:24 -07:00
legacy_horizontal_test.go Move consumers of autoscaling/v2alpha1 to v2beta1 2017-09-05 17:49:30 -04:00
legacy_replica_calculator_test.go remove duplicated import and wrong alias name of api package 2017-07-25 10:04:25 +08:00
rate_limitters.go Rate limit HPA controller to sync period 2017-03-09 16:32:01 -05:00
replica_calculator.go Move consumers of autoscaling/v2alpha1 to v2beta1 2017-09-05 17:49:30 -04:00
replica_calculator_test.go Merge pull request #50708 from DirectXMan12/versions/autoscaling-v2beta1 2017-09-06 15:46:24 -07:00