Skip to content

Commit fcf1654

Browse files
committed
Remove unused kubernetes helper method.
1 parent a2afb2c commit fcf1654

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/galaxy/jobs/runners/kubernetes.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -680,26 +680,6 @@ def __transform_memory_value(self, mem_value):
680680
"""
681681
return ByteSize(mem_value).value
682682

683-
def __assemble_k8s_container_image_name(self, job_wrapper):
684-
"""Assembles the container image name as repo/owner/image:tag, where repo, owner and tag are optional"""
685-
job_destination = job_wrapper.job_destination
686-
687-
# Determine the job's Kubernetes destination (context, namespace) and options from the job destination
688-
# definition
689-
repo = ""
690-
owner = ""
691-
if "repo" in job_destination.params:
692-
repo = f"{job_destination.params['repo']}/"
693-
if "owner" in job_destination.params:
694-
owner = f"{job_destination.params['owner']}/"
695-
696-
k8s_cont_image = repo + owner + job_destination.params["image"]
697-
698-
if "tag" in job_destination.params:
699-
k8s_cont_image += f":{job_destination.params['tag']}"
700-
701-
return k8s_cont_image
702-
703683
def __get_k8s_container_name(self, job_wrapper):
704684
# These must follow a specific regex for Kubernetes.
705685
raw_id = job_wrapper.job_destination.id

0 commit comments

Comments
 (0)