* ensure that minReplicas <= desiredReplicas <= maxReplicas no matter what * before this change, if the number of runners was much larger than the max number, the applied scale down factor might still result in a desired value > maxReplicas * if for resource constraints in the cluster, runners would be permanently restarted, the number of runners could go up more than the reverse scale down factor until the next reconciliation round, resulting in a situation where the number of runners climbs up even though it should actually go down * by checking whether the desiredReplicas is always <= maxReplicas, infinite scaling up loops can be prevented |
||
|---|---|---|
| .. | ||
| autoscaling.go | ||
| autoscaling_test.go | ||
| horizontalrunnerautoscaler_controller.go | ||
| integration_test.go | ||
| runner_controller.go | ||
| runnerdeployment_controller.go | ||
| runnerdeployment_controller_test.go | ||
| runnerreplicaset_controller.go | ||
| runnerreplicaset_controller_test.go | ||
| suite_test.go | ||
| utils.go | ||
| utils_test.go | ||