pravega / zookeeper-operator

Kubernetes Operator for Zookeeper
Apache License 2.0
364 stars 203 forks source link

Zookeeper Operator POD does not support securityContext override #562

Open janhoy opened 1 year ago

janhoy commented 1 year ago

Description

As noted in this comment on #441, the support for configuring securityContext was only added for hooks, not for the zookeeper-operator pod itself. Thus we cannot make set runAsNonRoot: true on the zk-operator POD.

Importance

This is important to enforce non-root requirements in many environments.

Location

See referenced issue

Suggestions for an improvement

In values file https://github.com/pravega/zookeeper-operator/pull/441#issuecomment-1194402901 it is indicated with that a top-level securityContext key is supported, but it is not. Add support for it in code.