From 153fff870abb5c4a8d336ffa7c19f43329d46db3 Mon Sep 17 00:00:00 2001 From: 123digits <22726303+123digits@users.noreply.github.com> Date: Mon, 29 Sep 2025 12:43:39 +0000 Subject: [PATCH 1/3] Add support for setting priorityClassName for coordinator and workers --- charts/trino/templates/deployment-coordinator.yaml | 3 +++ charts/trino/templates/deployment-worker.yaml | 3 +++ charts/trino/values.yaml | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/charts/trino/templates/deployment-coordinator.yaml b/charts/trino/templates/deployment-coordinator.yaml index 87a05bac..996c25e0 100644 --- a/charts/trino/templates/deployment-coordinator.yaml +++ b/charts/trino/templates/deployment-coordinator.yaml @@ -47,6 +47,9 @@ spec: {{- tpl (toYaml .Values.coordinator.labels) . | nindent 8 }} {{- end }} spec: + {{- if .Values.coordinator.priorityClassName }} + priorityClassName: {{ .Values.coordinator.priorityClassName }} + {{- end }} serviceAccountName: {{ include "trino.serviceAccountName" . }} {{- with .Values.securityContext }} securityContext: diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index d60121e0..d9f2f208 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -49,6 +49,9 @@ spec: {{- tpl (toYaml .Values.worker.labels) . | nindent 8 }} {{- end }} spec: + {{- if .Values.worker.priorityClassName }} + priorityClassName: {{ .Values.worker.priorityClassName }} + {{- end }} serviceAccountName: {{ include "trino.serviceAccountName" . }} {{- with .Values.securityContext }} securityContext: diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 631d39ca..6d129673 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -731,6 +731,10 @@ coordinator: # mountPath: /usr/share/extras # readOnly: true + priorityClassName: ~ + # worker.priorityClassName -- Kubernetes priority class for scheduling. + # By default, no priority class will be set. + annotations: {} # coordinator.annotations -- Annotations to add to the coordinator pod. # @raw @@ -954,6 +958,10 @@ worker: # readOnly: true # ``` + priorityClassName: ~ + # worker.priorityClassName -- Kubernetes priority class for scheduling. + # By default, no priority class will be set. + annotations: {} # worker.annotations -- Annotations to add to the worker pods. # @raw From 7dbaa05713711ff390dfd7634614d8317fe86bb0 Mon Sep 17 00:00:00 2001 From: 123digits <22726303+123digits@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:18:41 +0000 Subject: [PATCH 2/3] Remove comments for priorityClassName --- charts/trino/values.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/charts/trino/values.yaml b/charts/trino/values.yaml index 6d129673..17a58e64 100644 --- a/charts/trino/values.yaml +++ b/charts/trino/values.yaml @@ -732,8 +732,6 @@ coordinator: # readOnly: true priorityClassName: ~ - # worker.priorityClassName -- Kubernetes priority class for scheduling. - # By default, no priority class will be set. annotations: {} # coordinator.annotations -- Annotations to add to the coordinator pod. @@ -959,8 +957,6 @@ worker: # ``` priorityClassName: ~ - # worker.priorityClassName -- Kubernetes priority class for scheduling. - # By default, no priority class will be set. annotations: {} # worker.annotations -- Annotations to add to the worker pods. From c38d182744fc0587cbfe205baaf14d314ffd6f16 Mon Sep 17 00:00:00 2001 From: 123digits <22726303+123digits@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:30:24 +0000 Subject: [PATCH 3/3] Update trino readme docs to include new priorityClassName options --- charts/trino/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/trino/README.md b/charts/trino/README.md index f9bc0bde..e2d89273 100644 --- a/charts/trino/README.md +++ b/charts/trino/README.md @@ -598,6 +598,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore - name: extras mountPath: /usr/share/extras readOnly: true +* `coordinator.priorityClassName` - string, default: `nil` * `coordinator.annotations` - object, default: `{}` Annotations to add to the coordinator pod. @@ -764,6 +765,7 @@ Fast distributed SQL query engine for big data analytics that helps you explore mountPath: /usr/share/extras readOnly: true ``` +* `worker.priorityClassName` - string, default: `nil` * `worker.annotations` - object, default: `{}` Annotations to add to the worker pods.