-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
HPA Controller: Check for 0-sum request value #39694
HPA Controller: Check for 0-sum request value #39694
Conversation
In certain conditions in which the set of metrics returned by Heapster is completely disjoint from the set of pods returned by the API server, we can have a request sum of zero, which can cause a panic (due to division by zero). This checks for that condition. Fixes kubernetes#39680
cc @gmarek |
CC @kubernetes/sig-autoscaling-misc |
In order for this to get into 1.5.2, it will need to be reviewed, merged, and cherry-picked to 1.5 by EOD today (realistically before Wed AM PT) |
Jenkins GCE etcd3 e2e failed for commit c830d94. Full PR test history. The magic incantation to run this job again is Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
LGTM @DirectXMan12 I assume the test you added causes the panic without the patch to utilization.go? |
@k8s-bot gce etcd3 e2e test this |
I cherry picked this to 1.5 (PR #39711) to make sure it gets in to 1.5.2 per #39680 (comment) |
Automatic merge from submit-queue (batch tested with PRs 39694, 39383, 39651, 39691, 39497) |
In certain conditions in which the set of metrics returned by Heapster
is completely disjoint from the set of pods returned by the API server,
we can have a request sum of zero, which can cause a panic (due to
division by zero). This checks for that condition.
Fixes #39680
Release note: