New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K8S service binding support for Reactive SQL Clients #25657
K8S service binding support for Reactive SQL Clients #25657
Conversation
@geoand in addition to the feature implementation, we could reduce code duplication with a small refactoring. Instead of Then the same code base would handle both jdbc and reactive config sources when using k8s service bindings. Wdyt? |
This comment has been minimized.
This comment has been minimized.
Sounds like a good idea to me 🙂 |
This comment has been minimized.
This comment has been minimized.
Also, please rebase the PR onto a |
72c5943
to
287c81f
Compare
@geoand done |
Great! I'll have a look tomorrow morning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but my knowledge about SBO is quite superficial.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, LGTM!
I only have one comment: Can you squash the first and second commits please?
We try to avoid having commits that would break the build.
That way this PR would only have two commits: The first one that adds the Service Binding support for the reactive clients and the other one performing the refactoring.
This commit introduces support for K8S service binding when using Reactive SQL Clients.
…sources This commit introduces a base class for `ServiceBindingConfigSource` creation: `DatasourceServiceBindingConfigSourceFactory`. This abstract class has a `Jdbc` and a `Reactive` implementation. The `formatUrl` method can be overridden in db client extensions in order to handle specific case, e.g.: - MariaDB JDBC extension uses `mysql` service binding type but generates a URL with `mariadb` prefix - PostgreSQL JDBC extension handles specific cloud configurations using JDBC URL options
287c81f
to
af60d0b
Compare
@geoand done |
I've added the |
Failing Jobs - Building af60d0b
Full information is available in the Build summary check run. Failures⚙️ Devtools Tests - JDK 11 #- Failing: integration-tests/devtools
📦 integration-tests/devtools✖
⚙️ Devtools Tests - JDK 17 #- Failing: integration-tests/devtools
📦 integration-tests/devtools✖
|
This commit introduces support for K8S service binding when using Reactive SQL Clients.