-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UPSTREAM: 52168: Fix incorrect status msg in podautoscaler #16664
UPSTREAM: 52168: Fix incorrect status msg in podautoscaler #16664
Conversation
cc @sjenning |
/lgtm @derekwaynecarr can you review/approve? |
/approve |
Holding per [aos-devel] Holding upstream commit until rebase lands |
Rebase landed, removing do-not-merge. |
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>
6294127
to
6de1772
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, DirectXMan12, sjenning The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test integration |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
Automatic merge from submit-queue. |
This cherry-picks kubernetes/kubernetes#52168. It is mainly a cosmetic issue, as the fix changes the HPA status conditions to convey better information, but the initial information was not technically incorrect.
Fixes bug 1493347
https://bugzilla.redhat.com/show_bug.cgi?id=1493347