mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Make HPA tolerance a flag
Fix #18155 Make HPA tolerance configurable as a flag. This change allows us to use different tolerance values in production/testing. Signed-off-by: mattjmcnaughton <mattjmcnaughton@gmail.com>
This commit is contained in:
@@ -49,10 +49,6 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
// Usage shoud exceed the tolerance before we start downscale or upscale the pods.
|
||||
// TODO: make it a flag or HPA spec element.
|
||||
tolerance = 0.1
|
||||
|
||||
scaleUpLimitFactor = 2.0
|
||||
scaleUpLimitMinimum = 4.0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user