diff --git a/docs/src/main/asciidoc/config-reference.adoc b/docs/src/main/asciidoc/config-reference.adoc index db091f4eeb2dd..83c57341357d7 100644 --- a/docs/src/main/asciidoc/config-reference.adoc +++ b/docs/src/main/asciidoc/config-reference.adoc @@ -97,32 +97,10 @@ property names together. [source,properties] ---- -# value cannot be left empty -quarkus.datasource."datasource-name".jdbc.url=value +# value can be left empty but must be supplied by another source at runtime (or be an optional) +quarkus.datasource."datasource-name".jdbc.url= ---- -If the value is not known until runtime, the key name can still be provided using the `io.smallrye.config.WithKeys` annotation. - -[source,java] ----- -@ConfigMapping(prefix = "com.example") -public interface ExampleConfig { - - @WithKeys(KeySupplier.class) - Map deployments(); - - - class KeySupplier implements Supplier> { - @Override - public Iterable get() { - return List.of("fake-deployment-name-2", "fake-deployment-name-1"); - } - } -} ----- - -However, a values for these keys **must** then be provided at runtime. Configuration key disambiguation is not supported for optional properties. - [source,bash] ---- EXPORT QUARKUS_DATASOURCE__DATASOURCE_NAME__JDBC_URL=jdbc:postgresql://localhost:5432/database