Skip to content

Commit b0bee1d

Browse files
committed
remove default workload api domain
1 parent 22a6035 commit b0bee1d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/supervisor/src/env.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { randomUUID } from "crypto";
22
import { env as stdEnv } from "std-env";
33
import { z } from "zod";
4-
import { getDockerHostDomain } from "./util.js";
54

65
const Env = z.object({
76
// This will come from `spec.nodeName` in k8s
@@ -18,7 +17,7 @@ const Env = z.object({
1817
.string()
1918
.transform((s) => z.enum(["http", "https"]).parse(s.toLowerCase()))
2019
.default("http"),
21-
TRIGGER_WORKLOAD_API_DOMAIN: z.string().default(getDockerHostDomain()), // If unset, will use orchestrator-specific default
20+
TRIGGER_WORKLOAD_API_DOMAIN: z.string().optional(), // If unset, will use orchestrator-specific default
2221
TRIGGER_WORKLOAD_API_PORT_INTERNAL: z.coerce.number().default(8020), // This is the port the workload API listens on
2322
TRIGGER_WORKLOAD_API_PORT_EXTERNAL: z.coerce.number().default(8020), // This is the exposed port passed to the run controller
2423

0 commit comments

Comments
 (0)