File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ const Env = z.object({
8181 KUBERNETES_FORCE_ENABLED : BoolEnv . default ( false ) ,
8282 KUBERNETES_NAMESPACE : z . string ( ) . default ( "default" ) ,
8383 KUBERNETES_WORKER_NODETYPE_LABEL : z . string ( ) . default ( "v4-worker" ) ,
84+ KUBERNETES_WORKER_PRIORITY_CLASS_NAME : z . string ( ) . optional ( ) ,
8485 KUBERNETES_IMAGE_PULL_SECRETS : z . string ( ) . optional ( ) , // csv
8586 KUBERNETES_EPHEMERAL_STORAGE_SIZE_LIMIT : z . string ( ) . default ( "10Gi" ) ,
8687 KUBERNETES_EPHEMERAL_STORAGE_SIZE_REQUEST : z . string ( ) . default ( "2Gi" ) ,
@@ -91,7 +92,6 @@ const Env = z.object({
9192 KUBERNETES_MEMORY_REQUEST_RATIO : z . coerce . number ( ) . min ( 0 ) . max ( 1 ) . default ( 1 ) , // Ratio of memory limit, so 1 = 100% of memory limit
9293 KUBERNETES_MEMORY_OVERHEAD_GB : z . coerce . number ( ) . min ( 0 ) . optional ( ) , // Optional memory overhead to add to the limit in GB
9394 KUBERNETES_SCHEDULER_NAME : z . string ( ) . optional ( ) , // Custom scheduler name for pods
94- KUBERNETES_POD_PRIORITY_CLASS_NAME : z . string ( ) . optional ( ) , // Priority class name for task run pods
9595
9696 // Placement tags settings
9797 PLACEMENT_TAGS_ENABLED : BoolEnv . default ( false ) ,
Original file line number Diff line number Diff line change @@ -286,9 +286,9 @@ export class KubernetesWorkloadManager implements WorkloadManager {
286286 } ,
287287 }
288288 : { } ) ,
289- ...( env . KUBERNETES_POD_PRIORITY_CLASS_NAME
289+ ...( env . KUBERNETES_WORKER_PRIORITY_CLASS_NAME
290290 ? {
291- priorityClassName : env . KUBERNETES_POD_PRIORITY_CLASS_NAME ,
291+ priorityClassName : env . KUBERNETES_WORKER_PRIORITY_CLASS_NAME ,
292292 }
293293 : { } ) ,
294294 } ;
You can’t perform that action at this time.
0 commit comments