Skip to content

Commit bbd3f36

Browse files
committed
update logic & note
1 parent ac6bb3d commit bbd3f36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/retool/templates/priorityclass.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
{{/* By default, we give the jobs runner a higher 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:
@@ -10,6 +13,7 @@ preemptionPolicy: Never
1013
globalDefault: false
1114
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)