You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the API server in k8s helm setup fails, with the following message:
Error: Config file /etc/clp-config.yaml does not exist
Caused by:
0: `serde_yaml::Error`: database.name: invalid type: map, expected a string at line 32 column 5
1: database.name: invalid type: map, expected a string at line 32 column 5
Analysis
I think /etc/clp-config.yaml does not exist is a misleading message. The file actually exists, but the parsing fails.
Ubuntu 22.04 host, helm char dev branch. I haven't tried it with existing docker compose workflow in main branch, but I think it contains the same bug.
Bug
Symptom
Running the API server in k8s helm setup fails, with the following message:
Analysis
/etc/clp-config.yaml does not existis a misleading message. The file actually exists, but the parsing fails.database.namestring changes todatabase.namesmap to support multiple database names. However, theclp_config::package::config::Config::Databaseinclp-rust-utils, and the subsequently uses of the class, is still using the old format.Fix
Databasestruct inclp-rust-utils, and the uses of it.CLP version
junhaoliao@7447430
Environment
Ubuntu 22.04 host, helm char dev branch. I haven't tried it with existing docker compose workflow in main branch, but I think it contains the same bug.
Reproduction steps
Run
test.shin thetools/deployment/package-helm.