Commit d7151c0
committed
[SPARK-57940] Enable
### What changes were proposed in this pull request?
This PR aims to enable `readOnlyRootFilesystem` for the operator container in the Helm chart.
Since the operator writes temporary files under `java.io.tmpdir` (SPARK-57918), an `emptyDir`
volume is mounted at `/tmp`, following the existing `logs-volume` pattern.
### Why are the changes needed?
A read-only root filesystem prevents tampering with the container image at runtime and
completes the CIS Benchmark hardening on top of the existing restricted Pod Security
Standard compliance.
### Does this PR introduce _any_ user-facing change?
Yes. The operator container root filesystem becomes read-only by default; writable paths are
provided via `emptyDir` volumes (`/tmp`, `/opt/spark-operator/logs`). Users can override
`operatorDeployment.operatorPod.operatorContainer.securityContext` if needed.
### How was this patch tested?
Pass the CIs. Also manually verified with `helm lint --strict` and `helm template`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
Closes #743 from dongjoon-hyun/SPARK-57940.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>readOnlyRootFilesystem for operator container in Helm chart1 parent cac534c commit d7151c0
2 files changed
Lines changed: 5 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments