Skip to content

Commit

Permalink
Feat: Added use_host_network param to get_destination() (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
niyasrad authored Sep 16, 2024
1 parent 2f27c87 commit f10933f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions airbyte/destinations/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def get_destination(
pip_url: str | None = None,
local_executable: Path | str | None = None,
docker_image: str | bool | None = None,
use_host_network: bool = False,
install_if_missing: bool = True,
) -> Destination:
"""Get a connector by name and version.
Expand All @@ -47,6 +48,10 @@ def get_destination(
to use the default image for the connector, or you can specify a custom image name.
If `version` is specified and your image name does not already contain a tag
(e.g. `my-image:latest`), the version will be appended as a tag (e.g. `my-image:0.1.0`).
use_host_network: If set, along with docker_image, the connector will be executed using
the host network. This is useful for connectors that need to access resources on
the host machine, such as a local database. This parameter is ignored when
`docker_image` is not set.
install_if_missing: Whether to install the connector if it is not available locally. This
parameter is ignored when local_executable is set.
"""
Expand All @@ -64,6 +69,7 @@ def get_destination(
pip_url=pip_url,
local_executable=local_executable,
docker_image=docker_image,
use_host_network=use_host_network,
install_if_missing=install_if_missing,
),
)

0 comments on commit f10933f

Please sign in to comment.