Skip to content

Commit 5a1cc4c

Browse files
mattjmcnaughtonRobertKrawitz
authored andcommitted
UPSTREAM: 53690: Fix hpa scaling above max replicas w/ scaleUpLimit
Fix #53670 Fix a bug where `desiredReplicas` could be greater than `maxReplicas` if the original value for `desiredReplicas > scaleUpLimit` and `scaleUpLimit > maxReplicas`. Previously, when that happened, we would scale up to `scaleUpLimit`, and then in the next auto-scaling run, scale down to `maxReplicas`. Address this issue and introduce a regression test.
1 parent 4bb2151 commit 5a1cc4c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Diff for: vendor/k8s.io/kubernetes/pkg/controller/podautoscaler/horizontal.go

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: vendor/k8s.io/kubernetes/pkg/controller/podautoscaler/horizontal_test.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)