-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Externalize hotrod-client.properties with infinispan-client #4285
Comments
@wburns would you mind to have a look on the suggestion here? |
Currently the We could then add a runtime configuration option that overrides these values and applies the values at https://github.com/quarkusio/quarkus/blob/master/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java#L65 before passing the properties further down. I don't see any issues with doing that. |
Hi @wburns thanks for your reply!
That's what we need. So reading those properties from an external hotrod file is the approach that we can take? Something like this: |
It seems fine to me, I am not sure what the stance is from the Quarkus guys though. @gsmet have an opinion? |
@gsmet any feedback? would like to tackle this by end of the week so it can be included for the next release |
I would say just go ahead :) |
pull request created #4502 |
@wburns having @mswiderski PR merged, I understand that we can close this issue. |
Oh, looks like I missed a couple of notifications a while ago, sorry about that :). |
Description
When deploying a quarkus native application on a Kubernetes cluster, we need a easy way to configure the HotRod Client using
hotrod-client.properties
. Right now, the extension only supports reading this configuration from classpath. On cloud environments would be impossible to have such file mapped to aconfigMap
, for example.One use case is: How do we set authentication options (like credentials) using this extension and without a hard coded
hotrod-client.properties
file in the classpath with property substitution? I don't want to rely on environment variables with user credentials inside the pod.Also, this file has a bunch of options that advanced use cases might need:
https://docs.jboss.org/infinispan/9.4/apidocs/org/infinispan/client/hotrod/configuration/package-summary.html
Implementation ideas
So what's need is one property that tells the extension where the file is, for example:
quarkus.infinispan-client.hotrod-client.file=/home/user/conf/hotrod-client.properties
.Then this file could be read in here:
https://github.com/quarkusio/quarkus/blob/master/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java#L159
Users could easily set the hotrod properties in the configMap and then mount them on a container/pod.
Is it feasible/makes sense?
The text was updated successfully, but these errors were encountered: