Skip to content

Commit 38aa360

Browse files
1stvampTrigger.dev RepoOps
authored andcommitted
feat(supervisor): label a run pod with the isolation lane it ran in
The Kubernetes workload manager now sets a `compute.trigger.dev/runtime` label on the run pods it creates, recording the isolation lane the run executed in. This is the isolation lane, not the task runtime, so the value is always `container` on this path. Mono-RevId: f01751f8b86f630dec76a7b2776b10953aecc840
1 parent e5689cc commit 38aa360

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/supervisor/src/workloadManager/kubernetes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ export class KubernetesWorkloadManager implements WorkloadManager {
415415
// The schedule vs non-schedule distinction is all we need for the current metrics
416416
// and pool-level scheduling decisions; finer-grained source breakdowns live in run annotations.
417417
scheduled: String(this.#isScheduledRun(opts)),
418+
// The isolation lane, not opts.runtime (the task runtime).
419+
"compute.trigger.dev/runtime": "container",
418420
};
419421

420422
// Add privatelink label for CiliumNetworkPolicy matching

0 commit comments

Comments
 (0)