-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Set quarkus.datasource.db-kind automatically K8S Service Binding is used #14393
Conversation
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.
It's a good idea but we probably need to think a bit more about it :).
extensions/agroal/spi/src/main/java/io/quarkus/agroal/spi/DefaultDataSourceDbKindBuildItem.java
Outdated
Show resolved
Hide resolved
.../deployment/src/main/java/io/quarkus/jdbc/postgresql/deployment/JDBCPostgreSQLProcessor.java
Show resolved
Hide resolved
452caf9
to
a84605c
Compare
import io.quarkus.test.junit.QuarkusTest; | ||
|
||
@QuarkusTest | ||
public class FruitsEndpointTest { |
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.
I purposely don't have a native test for this as the service binding code does not do anything that would prevent it from working in native
@gsmet ping :) |
#14393 also needs to be figured out after this one |
The idea here is that when the service binding extensions is used along with a quarkus driver, we can automatically pick the database kind.
This relieves the user from having to configure anything datasource specific in their
application properties
.Relates to: #14327