Skip to content

Commit

Permalink
update internal api host
Browse files Browse the repository at this point in the history
  • Loading branch information
kelkawi-a committed Nov 5, 2024
1 parent 3a16ede commit 6873765
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 @@ -146,7 +146,7 @@ def create_env(model_name, app_name, container_name, config, state):
if container_name in ["airbyte-workload-launcher", "airbyte-workers"]:
env.update(
{
"INTERNAL_API_HOST": f"http://{app_name}:{INTERNAL_API_PORT}",
"INTERNAL_API_HOST": f"{app_name}:{INTERNAL_API_PORT}",
"WORKLOAD_API_HOST": f"http://{app_name}:{WORKLOAD_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 @@ -422,7 +422,7 @@ def create_plan(container_name, storage_type):

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"}
{"INTERNAL_API_HOST": "airbyte-k8s:8001", "WORKLOAD_API_HOST": "http://airbyte-k8s:8007"}
)

if storage_type == StorageType.minio:
Expand Down

0 comments on commit 6873765

Please sign in to comment.