Skip to content

Commit

Permalink
Fix read permission denied on train script when run as non-root
Browse files Browse the repository at this point in the history
Signed-off-by: Antonin Stefanutti <[email protected]>
  • Loading branch information
astefanutti committed Jan 9, 2025
1 parent cf74126 commit 5cabee9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ spec:
env | grep PET_
pip list
volumeMounts:
- name: workspace
mountPath: /workspace
volumes:
- name: workspace
emptyDir: {}
1 change: 0 additions & 1 deletion sdk_v2/kubeflow/training/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def get_args_using_train_func(
# That allows to execute the training script with the entrypoint.
exec_script = textwrap.dedent(
"""
program_path=$(mktemp -d)
read -r -d '' SCRIPT << EOM\n
{func_code}
EOM
Expand Down

0 comments on commit 5cabee9

Please sign in to comment.