Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-309

Externalize hot-hod client properties on Data Index component

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 0.6.0
    • 0.3.0
    • Data Index
    • None
    • 2019 Week 38-40 (from Sep 16), 2019 Week 41-43 (from Okt 7), 2019 Week 44-46 (from Okt 28)

      Right now is impossible to have hot-hod client properties externalized. This would be useful when configuring the Data Index as a container and when the server needs authentication.

      The proposal change is to add something like this to the RemoteCacheManager configuration:

      ConfigurationBuilder b = new ConfigurationBuilder();
      Properties p = new Properties();
      try(Reader r = new FileReader("/path/to/hotrod-client.properties")) {
         p.load(r);
         b.withProperties(p);
      }
      RemoteCacheManager rcm = new RemoteCacheManager(b.build());
      

      Also, the component should read from an external system property the path to read the hotrod-client.properties files.

      This will add the possibility to have a ConfigMap with the contents of this file be mounted on container runtime.

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: