When setting environment variables for properties with hyphens, such as:
quarkus.datasource.db-kind=postgresql
I would expect it to be set as:
export QUARKUS_DATASOURCE_DB_KIND=postgresql
However, that results in an the following message:
Unrecognized configuration key "quarkus.datasource.db.kind" was provided; it will be ignored;
All other properties, without hyphens, are passed correctly.
It also happens for other properties:
export QUARKUS_DATASOURCE_JDBC_MIN_SIZE=10
export QUARKUS_DATASOURCE_JDBC_INITIAL_SIZE=20
export QUARKUS_DATASOURCE_JDBC_MAX_SIZE=1000
...
Unrecognized configuration key "quarkus.datasource.jdbc.max.size" was provided;
Unrecognized configuration key "quarkus.datasource.jdbc.min.size" was provided;
Unrecognized configuration key "quarkus.datasource.jdbc.initial.size" was provided;
Workaround: Rename the environment variables and pass them into application.properties, with the hyphen names:
quarkus.datasource.jdbc.initial-size=${DATASOURCE_JDBC_INITIAL_SIZE}
quarkus.datasource.jdbc.min-size=${DATASOURCE_JDBC_MIN_SIZE}
quarkus.datasource.jdbc.max-size=${DATASOURCE_JDBC_MAX_SIZE}
What is the proper conversion? Is it documented somewhere?