[ISSUE] improve error handling for external web-modeler DB #2371
Labels
code-freeze-candidate
Issue found during a code freeze that we aren't sure yet are eligible to work on during the code fz
kind/issue
Unidentified issue, it could be a bug, misconfig, or anything in between
platform/aws
Issues related to AWS
platform/gcp
Issues related to GCP
Describe the issue:
If a password is not supplied through the values.yaml when connecting to an external postgres DB for web modeler rest API then you get the following error:
Actual behavior:
Strange error is seen referencing an env var in an array
Expected behavior:
It would be better if a cleaner error could be given. Such as
password must be provided for external DB
or if a password is not provided then the SPRING_DATASOURCE_PASSWORD env var in webmodeler rest API that references the password secret could be optional depending on if the password is provided or not.
How to reproduce:
values.yaml used:
Logs:
Environment:
Please note: Without the following info, it's hard to resolve the issue and probably it will be closed.
The text was updated successfully, but these errors were encountered: