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

Enhance storage client creation (optional and multiple) #114

Open
JiriOndrusek opened this issue Apr 29, 2021 · 2 comments
Open

Enhance storage client creation (optional and multiple) #114

JiriOndrusek opened this issue Apr 29, 2021 · 2 comments

Comments

@JiriOndrusek
Copy link

I'm working on camel-quarkus extension for google-storage apache/camel-quarkus#2421

It would be nice to have:

  • Optional client registration. For example for the JUnit test using test container, I need to create client manually. But if I don't fill application.properties (e.g. quarkus.google.cloud.service-account-location), I get

java.io.IOException: The Application Default Credentials are not available

  • Multiple clients registration. It is possible in camel to define several endpoints, each using different client - selected via @Named. Having an option to define multiple clients via application.properties would help a lot.
@loicmathieu
Copy link
Collaborator

@JiriOndrusek what you call an optional client is a client that is not authenticated to GCP. For this you'll need to provide a mock to GoogleCloudCredentials, I added a section in the README to explain how to do this, you can find a full exemple in the main integration test.

@JiriOndrusek
Copy link
Author

@loicmathieu Thank you. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants