Skip to content

Commit 89dfec2

Browse files
committed
[storage] toolbox: storage_download_to_pvc: chmod only as root
1 parent 0bbad0f commit 89dfec2

File tree

1 file changed

+3
-1
lines changed
  • projects/storage/toolbox/storage_download_to_pvc/templates

1 file changed

+3
-1
lines changed

projects/storage/toolbox/storage_download_to_pvc/templates/pod.yml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ spec:
1010
containers:
1111
- name: downloader
1212
image: {{ storage_download_to_pvc_image }}
13-
command: [bash, -c, "/mnt/entrypoint/entrypoint.sh && chmod -R a+rX /storage"]
1413
{% if storage_download_to_pvc_run_as_root %}
14+
command: [bash, -c, "/mnt/entrypoint/entrypoint.sh && chmod -R a+rX /storage"]
1515
securityContext:
1616
runAsUser: 0
1717
allowPrivilegeEscalation: true
18+
{% else %}
19+
command: [bash, /mnt/entrypoint/entrypoint.sh]
1820
{% endif %}
1921
env:
2022
- name: DOWNLOAD_SOURCE

0 commit comments

Comments
 (0)