nrvnrvn / k8dis

Redis Operator for Kubernetes
Apache License 2.0
5 stars 0 forks source link

How to manage multiple _loadmodule_ #7

Open nrvnrvn opened 2 years ago

nrvnrvn commented 2 years ago

From https://github.com/amaizfinance/redis-operator/issues/34:

As stated in the title I need to add in the config of Redis two loadmodule directives.\ If I compile the yaml with a section like this

config:
  loadmodule: "first module"
  loadmodule: "second module"

only the second module will be loaded and the first one is discarded because in YAML only the first occurrence is retained.

I thought about generating a custom config file in a init container and the include it, but the include keyword is forbidden.

Do you think I can try some workaround?

Can I contribute to the operator with a patch to address this issue? How could be changed the config management in a way to support this kind of configuration? I was thinking to add a specific module section, what do you think about?

nrvnrvn commented 2 years ago

As of now the config is implemented as a map[string]string and limitations comes from uniqueness of keys. #1 will change it to a free form format allowing to leverage redis.conf as is and remove this limitation.