fix: declare AgentRun resource mirror base URL

This commit is contained in:
Codex
2026-07-10 09:45:15 +02:00
parent 4a49c35977
commit da010ab093
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -184,6 +184,7 @@ export interface AgentRunLaneSpec {
readonly readDeployment: string;
readonly writeService: string;
readonly writeDeployment: string;
readonly resourceBundleBaseUrl: string;
readonly readUrl: string;
readonly writeUrl: string;
readonly cachePvc: string;
@@ -408,6 +409,7 @@ export function agentRunLaneSummary(spec: AgentRunLaneSpec): Record<string, unkn
readDeployment: spec.gitMirror.readDeployment,
writeService: spec.gitMirror.writeService,
writeDeployment: spec.gitMirror.writeDeployment,
resourceBundleBaseUrl: spec.gitMirror.resourceBundleBaseUrl,
readUrl: spec.gitMirror.readUrl,
writeUrl: spec.gitMirror.writeUrl,
cachePvc: spec.gitMirror.cachePvc,
@@ -618,6 +620,7 @@ function parseLane(lane: string, node: AgentRunNodeSpec, input: Record<string, u
readDeployment: stringField(gitMirror, "readDeployment", `${path}.gitMirror`),
writeService: stringField(gitMirror, "writeService", `${path}.gitMirror`),
writeDeployment: stringField(gitMirror, "writeDeployment", `${path}.gitMirror`),
resourceBundleBaseUrl: urlField(gitMirror, "resourceBundleBaseUrl", `${path}.gitMirror`),
readUrl: urlField(gitMirror, "readUrl", `${path}.gitMirror`),
writeUrl: urlField(gitMirror, "writeUrl", `${path}.gitMirror`),
cachePvc: stringField(gitMirror, "cachePvc", `${path}.gitMirror`),
+1 -1
View File
@@ -708,7 +708,7 @@ function managerEnv(spec: AgentRunLaneSpec, sourceCommit: string, imageRef: stri
{ name: "AGENTRUN_RUNNER_JOB_NAME_PREFIX", value: spec.deployment.runner.jobNamePrefix },
{ name: "AGENTRUN_RUNNER_API_KEY_SECRET_NAME", value: spec.deployment.runner.apiKeySecretRef.name },
{ name: "AGENTRUN_RUNNER_API_KEY_SECRET_KEY", value: spec.deployment.runner.apiKeySecretRef.key },
{ name: "AGENTRUN_GIT_MIRROR_BASE_URL", value: spec.gitMirror.readUrl },
{ name: "AGENTRUN_GIT_MIRROR_BASE_URL", value: spec.gitMirror.resourceBundleBaseUrl },
{ name: "AGENTRUN_RUNNER_IDLE_TIMEOUT_MS", value: String(spec.deployment.runner.idleTimeoutMs) },
{ name: "AGENTRUN_BACKEND_RETRY_MAX_ATTEMPTS", value: String(spec.deployment.runner.backendRetry.maxAttempts) },
{ name: "AGENTRUN_BACKEND_RETRY_INITIAL_BACKOFF_MS", value: String(spec.deployment.runner.backendRetry.initialBackoffMs) },