Commit 2cad48b
feat(helm): make init/sidecar securityContexts values-driven on webapp
Adds two new values knobs that override the hardcoded securityContext
on the built-in `volume-permissions` init container and `token-syncer`
sidecar:
webapp:
initContainers:
securityContext: {} # default: { runAsUser: 1000 }
sidecarContainers:
securityContext: {} # default: { runAsUser: 1000, runAsNonRoot: true }
When unset (default), behavior is unchanged. When set, the user's
securityContext fully replaces the chart's hardcoded one — useful for
operators that need stricter pod-security admission contexts (FedRAMP /
FIPS / Pod Security Standards "restricted" requires runAsNonRoot,
allowPrivilegeEscalation: false, capabilities.drop: [ALL],
seccompProfile.type: RuntimeDefault on every container).
Same idiom as the existing webapp.podSecurityContext and webapp.security-
Context (for the webapp container) — adds the missing knobs for the
init container and sidecar.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 5ac9228 commit 2cad48b
2 files changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
198 | 213 | | |
199 | 214 | | |
200 | 215 | | |
| |||
0 commit comments