|
12 | 12 |
|
13 | 13 | from orb.bootstrap import Application |
14 | 14 | from orb.config.managers.configuration_manager import ConfigurationManager |
15 | | -from orb.domain.base.ports.configuration_port import ConfigurationPort |
16 | 15 | from orb.infrastructure.di.container import create_container |
17 | 16 |
|
18 | 17 | from .config import SDKConfig |
@@ -73,11 +72,12 @@ def __init__( |
73 | 72 | app_config: Application config dict — replaces config.json on disk. |
74 | 73 | Pass the same structure as config.json to run without filesystem. |
75 | 74 | scheduler: Scheduler strategy override (e.g. ``"default"`` or ``"hostfactory"``). |
76 | | - provider_type: Provider type filter applied via ConfigurationPort on initialise. |
77 | | - Narrows which provider is selected when multiple providers are |
78 | | - registered (e.g. ``"k8s"``). |
79 | | - provider_name: Provider instance name applied via ConfigurationPort on initialise. |
80 | | - Selects a specific named provider instance (e.g. ``"my-k8s-cluster"``). |
| 75 | + provider_type: Provider type filter. Narrows which provider is selected when |
| 76 | + multiple providers are registered (e.g. ``"k8s"``). Passed |
| 77 | + through to Input DTOs on each operation. |
| 78 | + provider_name: Provider instance name. Selects a specific named provider |
| 79 | + instance (e.g. ``"my-k8s-cluster"``). Passed through to |
| 80 | + Input DTOs on each operation. |
81 | 81 | provider_config: Provider-specific key/value pairs (e.g. ``{"region": "us-east-1"}``). |
82 | 82 | region: **Deprecated.** Use ``provider_config={"region": ...}`` instead. |
83 | 83 | profile: **Deprecated.** Use ``provider_config={"profile": ...}`` instead. |
@@ -201,19 +201,6 @@ async def initialize(self) -> bool: |
201 | 201 | provider=self._config.provider, |
202 | 202 | ) |
203 | 203 |
|
204 | | - # Apply provider-name and provider-type overrides from SDK config. |
205 | | - # Use self._container (the per-client isolated container), not the |
206 | | - # module-level singleton returned by get_container(), so that overrides |
207 | | - # from one ORBClient instance never bleed into another. |
208 | | - # provider_config is stored for future use; pushing arbitrary provider |
209 | | - # key/value pairs through a provider-agnostic port is a follow-up task. |
210 | | - if self._config.provider_type or self._config.provider_name: |
211 | | - config_port = self._container.get(ConfigurationPort) |
212 | | - if self._config.provider_type: |
213 | | - config_port.override_provider_type(self._config.provider_type) |
214 | | - if self._config.provider_name: |
215 | | - config_port.override_provider_name(self._config.provider_name) |
216 | | - |
217 | 204 | # Get CQRS buses directly from the initialized application |
218 | 205 | self._query_bus = self._app.get_query_bus() |
219 | 206 | self._command_bus = self._app.get_command_bus() |
|
0 commit comments