From 14fdf2fb8685162ee1540d02805d3e47fdf26144 Mon Sep 17 00:00:00 2001 From: Felipe de Abreu Hsu Date: Mon, 18 May 2026 17:59:23 -0300 Subject: [PATCH] Add chart values priority and priorityClassName for manager --- helm/temporal-worker-controller/templates/manager.yaml | 6 ++++++ helm/temporal-worker-controller/values.schema.json | 8 ++++++++ helm/temporal-worker-controller/values.yaml | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/helm/temporal-worker-controller/templates/manager.yaml b/helm/temporal-worker-controller/templates/manager.yaml index 53142c56..a6e66c82 100644 --- a/helm/temporal-worker-controller/templates/manager.yaml +++ b/helm/temporal-worker-controller/templates/manager.yaml @@ -59,6 +59,12 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.priorityClassName }} + priorityClassName: {{ . | quote }} + {{- end }} + {{- if and (hasKey .Values "priority") (ne .Values.priority nil) }} + priority: {{ .Values.priority }} + {{- end }} containers: - name: manager image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion)}}" diff --git a/helm/temporal-worker-controller/values.schema.json b/helm/temporal-worker-controller/values.schema.json index 1e912f30..7160da95 100644 --- a/helm/temporal-worker-controller/values.schema.json +++ b/helm/temporal-worker-controller/values.schema.json @@ -95,6 +95,14 @@ "minimum": 1, "description": "Termination grace period in seconds" }, + "priority": { + "type": "integer", + "description": "Optional explicit Pod priority integer. Prefer priorityClassName when possible." + }, + "priorityClassName": { + "type": "string", + "description": "Optional name of a PriorityClass for the manager Pod" + }, "rbac": { "type": "object", "properties": { diff --git a/helm/temporal-worker-controller/values.yaml b/helm/temporal-worker-controller/values.yaml index 650b299d..22466977 100644 --- a/helm/temporal-worker-controller/values.yaml +++ b/helm/temporal-worker-controller/values.yaml @@ -26,6 +26,12 @@ resources: terminationGracePeriodSeconds: 10 +# Optional Pod priority scheduling. Prefer priorityClassName (references a +# cluster PriorityClass). Set priority only when you need an explicit integer; +# see https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ +# priority: 1000 +priorityClassName: "" + # All RBAC will be applied under this service account in # the deployment namespace. You may disable creation of this resource # if your manager will use a service account that exists at