Skip to content

Commit e540aff

Browse files
committed
add label to disable pre-pulls on specific nodes
1 parent ec072bb commit e540aff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

apps/kubernetes-provider/src/index.ts

+16
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,22 @@ class KubernetesTaskOperations implements TaskOperations {
339339
spec: {
340340
...this.#defaultPodSpec,
341341
restartPolicy: "Always",
342+
affinity: {
343+
nodeAffinity: {
344+
requiredDuringSchedulingIgnoredDuringExecution: {
345+
nodeSelectorTerms: [
346+
{
347+
matchExpressions: [
348+
{
349+
key: "trigger.dev/pre-pull-disabled",
350+
operator: "DoesNotExist",
351+
},
352+
],
353+
},
354+
],
355+
},
356+
},
357+
},
342358
initContainers: [
343359
{
344360
name: "prepull",

0 commit comments

Comments
 (0)