Container launcher not using airbyte-gcs-log-creds
- 主要言語
- Python
- スター
- 22.1k
- フォーク
- 5.3k
- PR マージ指標
- PR 指標を取得中
説明
### Helm Chart Version
2.0.18
### What step the error happened?
Other
### Relevant information
When a a container is launched, the pod is using the env `GOOGLE_APPLICATION_CREDENTIALS=/secrets/gcp-creds/gcp.json` but it's not using the `airbyte-gcs-log-creds`, it's using the main `airbyte-airbyte-secrets` which doesn't have `gcp.json`.
The pods fail to start because `/secrets/gcp-creds/gcp.json` is not found.
For now I added a custom transformation to slot in a `gcp.json` into `airbyte-airbyte-secrets`.
```
def fix_double_base64_google_application_creds(obj, opts):
if (
obj["kind"] == "Secret"
and obj["metadata"]["name"] == "airbyte-airbyte-secrets"
):
value = obj["stringData"]["GOOGLE_APPLICATION_CREDENTIALS_JSON"]
if not "client_id" in value:
json_value = base64.b64decode(value).decode("utf-8")
obj["stringData"]["GOOGLE_APPLICATION_CREDENTIALS_JSON"] = json_value
# HACK: There is some config mismatch in Airbyte so we'll set this here explicitly
obj["stringData"]["gcp.json"] = json_value
```
### Relevant log output
```shell
```
コントリビューションガイド
評価
この issue はまだ評価されていません。