• mattjmcnaughton's avatar
    Fix incorrect status msg in podautoscaler · dc8df270
    mattjmcnaughton authored
    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: 's avatarmattjmcnaughton <mattjmcnaughton@gmail.com>
    dc8df270
Name
Last commit
Last update
..
metrics Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
horizontal.go Loading commit data...
horizontal_test.go Loading commit data...
legacy_horizontal_test.go Loading commit data...
legacy_replica_calculator_test.go Loading commit data...
rate_limitters.go Loading commit data...
replica_calculator.go Loading commit data...
replica_calculator_test.go Loading commit data...