fix: use configured boot repo for runner jobs

This commit is contained in:
lyon
2026-06-14 12:07:33 +08:00
parent ba2752815d
commit 6568d13deb
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -39,6 +39,7 @@ export interface RunnerJobDefaults {
namespace: string;
managerUrl: string;
image: string;
bootRepoUrl?: string;
sourceCommit: string;
envIdentity?: string;
artifactCatalogFile?: string;
@@ -145,6 +146,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
commandId,
managerUrl,
image,
...(options.defaults.bootRepoUrl ? { bootRepoUrl: options.defaults.bootRepoUrl } : {}),
namespace,
sourceCommit,
transientEnv: renderTransientEnv,
+2
View File
@@ -41,6 +41,7 @@ function runnerJobDefaultsForRequest(defaults: ManagerServerOptions["runnerJobDe
namespace,
managerUrl: defaults?.managerUrl ?? process.env.AGENTRUN_INTERNAL_MGR_URL ?? `http://agentrun-mgr.${namespace}.svc.cluster.local:8080`,
image: defaults?.image ?? process.env.AGENTRUN_RUNNER_IMAGE ?? "",
...optionalStringRecord("bootRepoUrl", defaults?.bootRepoUrl ?? process.env.AGENTRUN_BOOT_REPO_URL),
sourceCommit,
...optionalStringRecord("envIdentity", defaults?.envIdentity ?? process.env.AGENTRUN_ENV_IDENTITY),
...optionalStringRecord("artifactCatalogFile", defaults?.artifactCatalogFile ?? process.env.AGENTRUN_ARTIFACT_CATALOG_FILE),
@@ -59,6 +60,7 @@ export interface ManagerServerOptions {
namespace?: string;
managerUrl?: string;
image?: string;
bootRepoUrl?: string;
envIdentity?: string;
artifactCatalogFile?: string;
serviceAccountName?: string;