I have set up Keycloak on Kubernetes using https://github.com/codecentric/helm-charts/tree/master/charts/keycloak helm chart.
I want to automatically add LDAP to it when deployed for the first time or modify it if the definition file changed.
I managed to set it up via REST API, but this has to be done manually after the server is already up and running and it doesn't work for modifications, because then a second entry is added and the first one is left untouched.
Any ideas about how to achieve it? Is there a way to put LDAP config file somewhere in the file system so it will be read by Keycloak? Or maybe is it achievable by CLI, but before the keycloak is running?