From 509611720cdf1139435d1b0545636169c41d0dea Mon Sep 17 00:00:00 2001 From: Alexandru Mahmoud Date: Wed, 25 Jan 2023 17:29:38 -0500 Subject: [PATCH] Use pod priority class for jobs --- galaxy/templates/_helpers.tpl | 2 +- galaxy/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/galaxy/templates/_helpers.tpl b/galaxy/templates/_helpers.tpl index 463547f6..c91e7d7c 100644 --- a/galaxy/templates/_helpers.tpl +++ b/galaxy/templates/_helpers.tpl @@ -262,7 +262,7 @@ Define pod priority class */}} {{- define "galaxy.pod-priority-class" -}} {{- if .Values.jobs.priorityClass.existingClass -}} -{{- printf "%s" .Values.jobs.priorityClass.existingClass -}} +{{- tpl .Values.jobs.priorityClass.existingClass . -}} {{- else -}} {{- printf "%s-job-priority" (include "galaxy.fullname" .) -}} {{- end -}} diff --git a/galaxy/values.yaml b/galaxy/values.yaml index e6028c20..e9e810b2 100644 --- a/galaxy/values.yaml +++ b/galaxy/values.yaml @@ -363,7 +363,7 @@ configs: k8s_job_ttl_secs_after_finished: 90 k8s_pod_priority_class: >- {{ if .Values.jobs.priorityClass.enabled -}} - {{- include "galaxy.fullname" . }}-job-priority + {{- include "galaxy.pod-priority-class" . }} {{- end }} k8s_interactivetools_use_ssl: true k8s_interactivetools_ingress_annotations: |