Chart: Explicitly set runAsGroup. (#11679)
* Chart: Explicitly set `runAsGroup`. Set a default value for the runAsGroup in container securityContexts of the controller and default backend. Also set the runAsGroup for opentelemetry and webhook Job container securityContexts. Signed-off-by: Gerald Pape <gerald@giantswarm.io> * Apply suggestions from code review Co-authored-by: Marco Ebert <marco_ebert@icloud.com> --------- Signed-off-by: Gerald Pape <gerald@giantswarm.io> Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
parent
04899b27a9
commit
36df47fcc4
6 changed files with 44 additions and 4 deletions
|
|
@ -160,3 +160,11 @@ tests:
|
|||
values:
|
||||
- controller
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
- it: should create a Deployment with `runAsGroup` if `controller.image.runAsGroup` is set
|
||||
set:
|
||||
controller.image.runAsGroup: 1000
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].securityContext.runAsGroup
|
||||
value: 1000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue