Skip to content

Commit

Permalink
Introduce support for the uri file in k8s service binding
Browse files Browse the repository at this point in the history
According to https://github.com/servicebinding/spec#workload-projection,
`uri` is part of the standard

(cherry picked from commit c205494)
  • Loading branch information
geoand authored and gsmet committed Dec 6, 2022
1 parent 1ae0666 commit bb7a01f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ private Map<String, String> getServiceBindingProperties() {
log.debugf("Property 'password' was not found for datasource of type %s", serviceBinding.getType());
}

String url = bindingProperties.get("jdbc-url");
if (url != null) {
properties.put(urlPropertyName, url);
String jdbcURL = bindingProperties.get("jdbc-url");
if (jdbcURL != null) {
properties.put(urlPropertyName, jdbcURL);
return properties;
}
String uri = bindingProperties.get("uri");
if (uri != null) {
properties.put(urlPropertyName, uri);
return properties;
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jdbc:postgresql://localhost:5431/quarkus_test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
quarkus.datasource.db-kind=postgresql
quarkus.datasource.db-kind=postgresql

0 comments on commit bb7a01f

Please sign in to comment.