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

Exposes job.PriorityClass.value as modifiable value #451

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions galaxy/templates/priorityclass-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ metadata:
name: {{ include "galaxy.pod-priority-class" . }}
labels:
{{- include "galaxy.labels" . | nindent 4 }}
value: -1000
value: {{ if .Values.jobs.priorityClass.value -}}
{{ .Values.jobs.priorityClass.value}}
{{- else -}}
-1000
{{- end}}
mapk-amazon marked this conversation as resolved.
Show resolved Hide resolved
preemptionPolicy: Never
globalDefault: false
description: "Galaxy jobs will run when cluster resources are available and will not preempt existing workloads."
description: "Galaxy jobs will not preempt existing workloads and depending on the value spin up new resources for the computation."
mapk-amazon marked this conversation as resolved.
Show resolved Hide resolved
{{ end }}
1 change: 1 addition & 0 deletions galaxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ jobs:
#- Assign a [priorityClass](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) to the dispatched jobs.
enabled: true
existingClass: ""
value: -1000
rules:
tpv_rules_local.yml:
global:
Expand Down