cscetbon / casskop

This Kubernetes operator automates Cassandra operations such as deploying rack aware clusters, scaling up and down, configuring C* and its JVM, upgrading JVM and C*, backup/restores and many more...
https://cscetbon.github.io/casskop/
Apache License 2.0
13 stars 8 forks source link

Configurable Environment Variables #106

Closed karolkieglerski closed 8 months ago

karolkieglerski commented 1 year ago

Feature Request

We as need ability to add custom Environment Variable to each Cassandra container. It can be added by a list of key: value.

example solution in values.yaml:

env_vars:
   casandra:
       VERSION: 3.11
       CUSTOM_FLAG: test_value
cscetbon commented 1 year ago

Can you tell us @karolkieglerski why would something like that be useful for cassandra containers ? they're already fully configurable but not sure why such a thing would be needed. Any use case you can describe ?

tomix86 commented 1 year ago

@cscetbon we're using a monitoring agent, to which we need to feed certain configuration metadata via environment variables. The agent in question is injected into the Cassandra container, hence the need to set the env vars there.

cscetbon commented 1 year ago

I unfortunately don't have much time to work on this but I can guide anyone who wants to tackle this. It shouldn't be hard to implement.

cscetbon commented 11 months ago

@tomix86 do you want to try to take a stab at it ? I can guide you if needed and it shouldn't take long