feat: 打通 v0.1 runner job 正式路径

This commit is contained in:
Codex
2026-05-29 12:44:37 +08:00
parent d2276e9e59
commit 2b8a5dfc99
19 changed files with 457 additions and 18 deletions
+3 -2
View File
@@ -14,6 +14,7 @@ export interface RunnerJobRenderOptions {
imagePullPolicy?: string;
backoffLimit?: number;
ttlSecondsAfterFinished?: number;
dryRun?: boolean;
}
interface CredentialProjection {
@@ -24,7 +25,7 @@ interface CredentialProjection {
}
export function renderRunnerJobDryRun(options: RunnerJobRenderOptions): JsonRecord {
const render = renderRunnerJobManifest(options);
const render = renderRunnerJobManifest({ ...options, dryRun: true });
return {
dryRun: true,
mutation: false,
@@ -75,7 +76,7 @@ export function renderRunnerJobManifest(options: RunnerJobRenderOptions): { mani
annotations: {
"agentrun.pikastech.local/run-id": options.run.id,
"agentrun.pikastech.local/command-id": options.commandId,
"agentrun.pikastech.local/dry-run-render": "true",
"agentrun.pikastech.local/dry-run-render": String(options.dryRun === true),
},
},
spec: {