fix: parse runner retention kubectl output before redaction

This commit is contained in:
lyon
2026-06-19 23:04:07 +08:00
parent 2b576296d0
commit 1aeadc428d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ async function kubectlRun(kubectlCommand: string, args: string[]): Promise<{ cod
}).catch((error: unknown) => {
throw new AgentRunError("infra-failed", `failed to start kubectl: ${error instanceof Error ? error.message : String(error)}`, { httpStatus: 503 });
});
return { ...result, stdout: redactText(stdout), stderr: redactText(stderr) };
return { ...result, stdout, stderr };
}
function compareCandidates(left: RunnerResourceEntry, right: RunnerResourceEntry): number {
+1 -1
View File
@@ -290,7 +290,7 @@ function runnerJob(name, createdAt, commandId) {
namespace: "agentrun-v02",
creationTimestamp: createdAt,
labels: { "app.kubernetes.io/part-of": "agentrun", "app.kubernetes.io/name": "agentrun-runner", "app.kubernetes.io/component": "runner", "agentrun.pikastech.local/lane": "v0.2", "job-name": name },
annotations: { "agentrun.pikastech.local/run-id": "run-old", "agentrun.pikastech.local/command-id": commandId, "agentrun.pikastech.local/runner-id": "runner-old" },
annotations: { "agentrun.pikastech.local/run-id": "run-old", "agentrun.pikastech.local/command-id": commandId, "agentrun.pikastech.local/runner-id": "runner-old", token: null, secret: null },
},
status: {},
};