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
Human-Readable Print Of HPA with Object-Metric TargetAverageValue is Wrong #89315
Comments
/sig autoscaling |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
@zach-robinson It looks like this issue was fixed with this PR |
What happened:
Created an HPA against an Object Metric with a target AverageValue. HPA works as expected, but when printing in human readable format the current and target averageValue do not get printed.
For some reason the HPA controller seems to be inserting dummy values for the current value and targetValue (non-averaged).
The controller is correctly using the averageValue to calculate the number of replicas, as you can see in the describe:
But it seems to be causing issues in the human-readable printout.
What you expected to happen:
When doing
kubectl get hpa
average current metric value and target for Object-Metric should be printed under the TARGETS header.How to reproduce it (as minimally and precisely as possible):
Create an HPA using an Object-Metric with an averageValue target.
Anything else we need to know?:
#72824
#87733
Environment:
kubectl version
):cat /etc/os-release
): Red Hat Enterprise Linux CoreOS 42.80.20191010.0 (Ootpa)uname -a
): 3.10.0-1062.4.1.el7.x86_64The text was updated successfully, but these errors were encountered: