k3s/pkg/controller/podautoscaler
mattjmcnaughton e74838b6ab Refactor `reconcileAutoscaler` method in hpa
There have been a couple of recent bugs in the "normalizing" part of the
`reconcileAutoscaler` method. This part of the code base is responsible
for, among other things, taking the suggested desired replicas based on
the metrics, ensuring it conforms to certain conditions, and updating it
if it does not. Isolate the part that converts the desired replicas
based on a given set of rules into its own function.

We are refactoring this part of the code base to make the logic simpler
and to make it easier to write unit tests.
2017-11-16 09:42:49 -05:00
..
metrics use core client with explicit version globally 2017-10-27 15:48:32 +08:00
BUILD Update generated files 2017-11-09 12:14:08 +01:00
OWNERS Add approvers to owners file for hpa 2017-07-18 13:23:43 +02:00
doc.go
horizontal.go Refactor `reconcileAutoscaler` method in hpa 2017-11-16 09:42:49 -05:00
horizontal_test.go Refactor `reconcileAutoscaler` method in hpa 2017-11-16 09:42:49 -05:00
legacy_horizontal_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
legacy_replica_calculator_test.go Make HPA tolerance a flag 2017-09-28 22:01:51 -04:00
rate_limitters.go Fix golint errors in `pkg/controller/podautoscaler` 2017-09-09 14:53:34 -04:00
replica_calculator.go Make HPA tolerance a flag 2017-09-28 22:01:51 -04:00
replica_calculator_test.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00