Skip to content

Commit

Permalink
Comments ports usage (we leave this feature for later) and other mino…
Browse files Browse the repository at this point in the history
…r formatting.
  • Loading branch information
pcm32 committed Apr 13, 2016
1 parent f6dc05f commit 0d21b52
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/galaxy/jobs/runners/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,22 @@ def __get_k8s_containers(self, job_wrapper):
}
}

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

return k8s_container

#def __get_k8s_containers_ports(self, job_wrapper):

# for k,v self.runner_params:
# if k.startswith("container_port_"):

def __assemble_k8s_container_image_name(self, job_wrapper):
"""Assembles the container image name as repo/owner/image:tag, where repo, owner and tag are optional"""
job_destination = job_wrapper.job_destination

# Determine the job's Kubernetes destination (context, namespace) and options from the job destination definition
# Determine the job's Kubernetes destination (context, namespace) and options from the job destination
# definition
repo = ""
owner = ""
if 'repo' in job_destination.params:
Expand Down

0 comments on commit 0d21b52

Please sign in to comment.