Skip to content

Commit

Permalink
add sample workload api bearer token
Browse files Browse the repository at this point in the history
  • Loading branch information
kelkawi-a committed Oct 31, 2024
1 parent 7009df6 commit ea2b638
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/charm_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def create_env(model_name, app_name, container_name, config, state):
"CONNECTOR_BUILDER_API_HOST": f"{app_name}:{CONNECTOR_BUILDER_SERVER_API_PORT}",
"AIRBYTE_API_HOST": f"{app_name}:{AIRBYTE_API_PORT}/api/public",
"WORKLOAD_API_HOST": f"{app_name}:{WORKLOAD_API_PORT}",
"WORKLOAD_API_BEARER_TOKEN": ".Values.workload-api.bearerToken",
}

# https://github.com/airbytehq/airbyte/issues/29506#issuecomment-1775148609
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def create_plan(container_name, storage_type):
"WORKER_LOGS_STORAGE_TYPE": storage_type,
"WORKER_STATE_STORAGE_TYPE": storage_type,
"WORKLOAD_API_HOST": "airbyte-k8s:8007",
"WORKLOAD_API_BEARER_TOKEN": ".Values.workload-api.bearerToken",
},
},
},
Expand Down

0 comments on commit ea2b638

Please sign in to comment.