Skip to content

Commit

Permalink
Fixes volumes and containers to be as expected json arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcm32 committed Apr 22, 2016
1 parent ffdc08b commit cabfd83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/galaxy/jobs/runners/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __get_k8s_mountable_volumes(self, job_wrapper):
"claimName": self.runner_params['k8s_persistent_volume_claim_name']
}
}
return k8s_mountable_volume
return [ k8s_mountable_volume ]

def __get_k8s_containers(self, job_wrapper):
"""Fills in all required for setting up the docker containers to be used."""
Expand All @@ -155,17 +155,17 @@ def __get_k8s_containers(self, job_wrapper):
# command line execution, separated by ;, which is what Galaxy does
# to assemble the command.
# TODO possibly shell needs to be set by job_wrapper
"command": "[\"/bin/bash\",\"-c\",\"" + job_wrapper.runner_command_line + "\"]",
"volumeMounts": {
"command": ["/bin/bash", "-c", job_wrapper.runner_command_line],
"volumeMounts": [{
"mountPath": self.runner_params['k8s_persistent_volume_claim_mount_path'],
"name": self._galaxy_vol_name
}
}]
}

# if self.__requires_ports(job_wrapper):
# k8s_container['ports'] = self.__get_k8s_containers_ports(job_wrapper)

return k8s_container
return [ k8s_container ]

# def __get_k8s_containers_ports(self, job_wrapper):

Expand Down

0 comments on commit cabfd83

Please sign in to comment.