I have copied cache-ispn.xml file from base Keycloak image, and I have rename the caches names like:
<replicated-cache name="**keycloak**-work">
<expiration lifespan="-1"/>
</replicated-cache>
so prefix ‘keycloak’ is added so on Infinispan server (external) I can distinguish what caches are for Keycloak, what not.
But this does not work, and I am still getting WARNS and ERROS about old cache names like they are hardcoded in Keycloak:
"org.infinispan.client.hotrod.logging.Log_$logger","loggerName":"org.infinispan.HOTROD","level":"WARN","logDesc":"ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'work' not found amongst the configured caches
org.jboss.logging.Logger","loggerName":"org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler","level":"ERROR","logDesc":"ERROR: java.lang.NullPointerException: Cannot invoke \"org.infinispan.configuration.cache.ConfigurationBuilder.persistence()\" because \"builder\" is null
Is this is possible or I have to stick with predefined cache names?