Skip to content

Commit 77f003e

Browse files
committed
update logic & note
1 parent ac6bb3d commit 77f003e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

charts/retool/templates/priorityclass.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
{{/* We ensure that the jobs runner has highest priority,
2+
since unrun db migrations can lead to pod crashloops. */}}
13
{{- if not .Values.priorityClassName }}
4+
{{- if include "retool.jobRunner.enabled" . }}
25
apiVersion: scheduling.k8s.io/v1
36
kind: PriorityClass
47
metadata:
@@ -8,8 +11,9 @@ metadata:
811
value: 20
912
preemptionPolicy: Never
1013
globalDefault: false
11-
description: "PriorityClass for Retool jobs runner pods"
14+
description: "PriorityClass for Retool jobs-runner pods"
1215
---
16+
{{- end }}
1317
apiVersion: scheduling.k8s.io/v1
1418
kind: PriorityClass
1519
metadata:

0 commit comments

Comments
 (0)