k8ssandra/cass-operator

Deprecate dockerImageRunsAsCassandra

Closed this issue · 1 comments

What is missing?

dockerImageRunsAsCassandra has been set to true as default for a long time. Setting it to false provided the ability to run the images as root, but none of our images do that.

The correct way to do this is to override the functionality with setting podTemplateSpec/spec/securityContext.

Why is this needed?

Some users have set this to false due to some old examples, but that does not do what the user expects (nor does it fix anything).

Correct method that would work is to use securityContext which is similar to what we're using with OpenShift deployments.

Related: #529