mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-22 06:28:45 +02:00
Set per-controller reconcile concurrency defaults and remove --default-max-concurrent-reconciles (#4670)
This commit is contained in:
+14
-19
@@ -74,33 +74,31 @@ tests:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--listener-metrics-endpoint=/metrics"
|
||||
|
||||
- it: should omit every max-concurrent-reconciles flag by default
|
||||
- it: should render every max-concurrent-reconciles flag by default
|
||||
release:
|
||||
name: "test-arc"
|
||||
namespace: "test-ns"
|
||||
asserts:
|
||||
- notContains:
|
||||
# An exact match, so this pins both the values and the render order.
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--ephemeral-runner-max-concurrent-reconciles=1"
|
||||
- notContains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--default-max-concurrent-reconciles=1"
|
||||
- notContains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--autoscaling-runner-set-max-concurrent-reconciles=1"
|
||||
- notContains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--autoscaling-listener-max-concurrent-reconciles=1"
|
||||
- notContains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--ephemeral-runner-set-max-concurrent-reconciles=1"
|
||||
value:
|
||||
- "--auto-scaling-runner-set-only"
|
||||
- "--log-level=debug"
|
||||
- "--log-format=text"
|
||||
- "--autoscaling-runner-set-max-concurrent-reconciles=2"
|
||||
- "--autoscaling-listener-max-concurrent-reconciles=2"
|
||||
- "--ephemeral-runner-set-max-concurrent-reconciles=2"
|
||||
- "--ephemeral-runner-max-concurrent-reconciles=4"
|
||||
- "--listener-metrics-addr=0"
|
||||
- "--listener-metrics-endpoint="
|
||||
- "--metrics-addr=0"
|
||||
|
||||
- it: should include every max-concurrent-reconciles flag when configured
|
||||
set:
|
||||
controller:
|
||||
manager:
|
||||
config:
|
||||
defaultMaxConcurrentReconciles: 4
|
||||
autoscalingRunnerSetMaxConcurrentReconciles: 3
|
||||
autoscalingListenerMaxConcurrentReconciles: 5
|
||||
ephemeralRunnerSetMaxConcurrentReconciles: 6
|
||||
@@ -109,9 +107,6 @@ tests:
|
||||
name: "test-arc"
|
||||
namespace: "test-ns"
|
||||
asserts:
|
||||
- contains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--default-max-concurrent-reconciles=4"
|
||||
- contains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: "--autoscaling-runner-set-max-concurrent-reconciles=3"
|
||||
|
||||
Reference in New Issue
Block a user