Skip to content

Commit

Permalink
update baseurl for airbyte workers
Browse files Browse the repository at this point in the history
  • Loading branch information
kelkawi-a committed Oct 31, 2024
1 parent ea2b638 commit 0a61b51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/charm_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def create_env(model_name, app_name, container_name, config, state):
}

# https://github.com/airbytehq/airbyte/issues/29506#issuecomment-1775148609
if container_name == "airbyte-workload-launcher":
if container_name in ["airbyte-workload-launcher", "airbyte-workers"]:
env.update(
{
"INTERNAL_API_HOST": f"http://{app_name}:{INTERNAL_API_PORT}",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def create_plan(container_name, storage_type):
},
}

if container_name == "airbyte-workload-launcher":
if container_name in ["airbyte-workload-launcher", "airbyte-workers"]:
want_plan["services"][container_name]["environment"].update(
{"INTERNAL_API_HOST": "http://airbyte-k8s:8001", "WORKLOAD_API_HOST": "http://airbyte-k8s:8007"}
)
Expand Down

0 comments on commit 0a61b51

Please sign in to comment.