Skip to content

Commit

Permalink
fix: k8s container volume mounts as list
Browse files Browse the repository at this point in the history
As described in the body of PR snakemake#1858
  • Loading branch information
kdm9 committed Sep 20, 2022
1 parent 37857d6 commit 30ee7c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions snakemake/executors/__init__.py
Expand Up @@ -1853,10 +1853,8 @@ def run(self, job, callback=None, submit_callback=None, error_callback=None):
container.args = ["-c", exec_job]
container.working_dir = "/workdir"
container.volume_mounts = [
kubernetes.client.V1VolumeMount(name="workdir", mount_path="/workdir")
]
container.volume_mounts = [
kubernetes.client.V1VolumeMount(name="source", mount_path="/source")
kubernetes.client.V1VolumeMount(name="workdir", mount_path="/workdir"),
kubernetes.client.V1VolumeMount(name="source", mount_path="/source"),
]

node_selector = {}
Expand Down

0 comments on commit 30ee7c7

Please sign in to comment.