From 8105ca888d19ec936c5382e285f8f0ac4753ffc4 Mon Sep 17 00:00:00 2001 From: "blue.lion4023" Date: Sat, 21 Feb 2026 00:29:03 +0300 Subject: [PATCH] helm: add priorityClassName support to pod spec --- script/helm/garage/templates/workload.yaml | 3 +++ script/helm/garage/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index 4264253e..81c8616f 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -28,6 +28,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "garage.serviceAccountName" . }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} initContainers: diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml index 785aea22..d376c6a7 100644 --- a/script/helm/garage/values.yaml +++ b/script/helm/garage/values.yaml @@ -238,6 +238,10 @@ tolerations: [] affinity: {} +# -- Optional priority class name to assign to the pods. +# See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ +priorityClassName: "" + environment: {} extraVolumes: {}