Skip to content
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

Merged
merged 2 commits into from
Jan 22, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jan 19, 2021

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

Copy link
Member

@gsmet gsmet left a 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 :).

@geoand geoand force-pushed the #14327 branch 2 times, most recently from 452caf9 to a84605c Compare January 19, 2021 14:26
@ghost ghost added the area/persistence OBSOLETE, DO NOT USE label Jan 20, 2021
@geoand geoand marked this pull request as ready for review January 20, 2021 12:02
@geoand geoand requested a review from gsmet January 20, 2021 12:02
import io.quarkus.test.junit.QuarkusTest;

@QuarkusTest
public class FruitsEndpointTest {
Copy link
Contributor Author

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

@geoand
Copy link
Contributor Author

geoand commented Jan 22, 2021

@gsmet ping :)

@geoand
Copy link
Contributor Author

geoand commented Jan 22, 2021

#14393 also needs to be figured out after this one

@gsmet gsmet merged commit 6e8b078 into quarkusio:master Jan 22, 2021
@ghost ghost added this to the 1.12 - master milestone Jan 22, 2021
@geoand geoand deleted the #14327 branch January 22, 2021 14:13
@geoand
Copy link
Contributor Author

geoand commented Jan 22, 2021

Thanks for merging @gsmet

I also marked it for backporting so @johnpoth can test with 1.11.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/persistence OBSOLETE, DO NOT USE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants