Skip to content

Commit

Permalink
volumes: CVMFS readOnly to true on job pod spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Jan 27, 2020
1 parent 2688996 commit 3a453a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reana_job_controller/kubernetes_job_manager.py
Expand Up @@ -159,7 +159,8 @@ def execute(self):
(self.job['spec']['template']['spec']['containers'][0]
['volumeMounts'].append(
{'name': volume['name'],
'mountPath': '/cvmfs/{}'.format(mount_path)}
'mountPath': '/cvmfs/{}'.format(mount_path),
'readOnly': volume['readOnly']}
))
self.job['spec']['template']['spec']['volumes'].append(volume)

Expand Down

0 comments on commit 3a453a9

Please sign in to comment.