Skip to content

Commit

Permalink
Support overriding worker pool instead of count
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Jul 23, 2024
1 parent 18d0dce commit fee69fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kube_custom_resource/runtime_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def create_controller_for_model(
reconcile_func: runtime.ReconcileFunc,
*,
namespace: typing.Optional[str] = None,
worker_count: typing.Optional[int] = None,
worker_pool: typing.Optional[runtime.WorkerPool] = None,
requeue_max_backoff: typing.Optional[int] = None
):
) -> runtime.Controller:
"""
Creates a controller from the specified model.
"""
Expand All @@ -47,7 +47,7 @@ def create_controller_for_model(
model._meta.kind,
reconcile_func,
namespace = namespace,
worker_count = worker_count,
worker_pool = worker_pool,
requeue_max_backoff = requeue_max_backoff
)

Expand Down

0 comments on commit fee69fe

Please sign in to comment.