Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override some k8s runner params with destination params #10520

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

almahmoud
Copy link
Member

Along with galaxyproject/galaxy-helm#173 accomplishes #10481

@@ -227,8 +231,10 @@ def __get_k8s_job_spec_template(self, ajs):
"containers": self.__get_k8s_containers(ajs),
"priorityClassName": self.runner_params['k8s_pod_priority_class'],
"tolerations": yaml.safe_load(self.runner_params['k8s_tolerations'] or "[]"),
"affinity": yaml.safe_load(self.runner_params['k8s_affinity'] or "{}"),
"nodeSelector": yaml.safe_load(self.runner_params['k8s_node_selector'] or "{}")
"affinity": yaml.safe_load(self.__get_overridable_params(ajs.job_wrapper,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these things something we could test in https://github.com/mvdbeek/galaxy/blob/4842e0dbb9203209edcccfc72675c9b90e7b8b2d/test/integration/test_kubernetes_runner.py#L93 ? Set to some value that would prevent running the job and then override it in the destination ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeh I could try adding some tests

@mvdbeek mvdbeek self-assigned this Jan 6, 2021
@mvdbeek mvdbeek merged commit d6eb690 into galaxyproject:dev Jan 7, 2021
@mvdbeek
Copy link
Member

mvdbeek commented Jan 7, 2021

Thanks @almahmoud! If you ever want to get to writing tests I'm happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants