Skip to content

Commit

Permalink
[swan-cern] Sidecar container needs to run as root
Browse files Browse the repository at this point in the history
When using the swan-cern user image, by default jovyan is used.
This commits forces the use of root.
  • Loading branch information
etejedor committed Dec 3, 2024
1 parent 94acf01 commit 28a4dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion swan-cern/files/swan_config_cern.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
V1ObjectMeta,
V1Secret,
V1SecretVolumeSource,
V1SecurityContext,
V1Volume,
V1VolumeMount,
)
Expand Down Expand Up @@ -200,7 +201,8 @@ def _init_eos_containers(self, eos_secret_name):
env['USER_ID'],
str(swan_cull_period)
],
volume_mounts=side_container_volume_mounts
volume_mounts=side_container_volume_mounts,
security_context=V1SecurityContext(run_as_user=0)
)
)

Expand Down

0 comments on commit 28a4dc7

Please sign in to comment.