Orange-OpenSource / casskop

This Kubernetes operator automates the Cassandra operations such as deploying a new rack aware cluster, adding/removing nodes, configuring the C* and JVM parameters, upgrading JVM and C* versions, and many more...
https://orange-opensource.github.io/casskop/
Apache License 2.0
183 stars 54 forks source link

Custom script when Cassandra starts up #306

Closed SuhailRahman closed 3 years ago

SuhailRahman commented 3 years ago
Q A
New feature? [X]
License Apache 2.0

What's in this PR?

This PR has the extended functionality of running a custom script when the Cassandra pod is started up, using the postStart lifecycle hook. One use case is when the user wishes to create custom roles on the startup of Cassandra

Why?

In case a user wishes to perform an operation immediately after Cassandra is started up, such as create a role with cqlsh, the script specified by /etc/cassandra_post_start.sh can be injected via configmap to run on post-start.

ajaybhat commented 3 years ago

@cscetbon can you please review this

cscetbon commented 3 years ago

Closing the PR for now as it's been opened for more than a month. Reopen it when you have more time to work on it. Thanks