fix(hwlab): close d518 yaml cutover gaps

This commit is contained in:
Codex
2026-06-27 15:40:25 +00:00
parent fc032d829a
commit 1968c43a6a
14 changed files with 831 additions and 13 deletions
+31
View File
@@ -269,6 +269,20 @@ interface ControlPlaneConfig {
targets: readonly ControlPlaneTargetSpec[];
}
export interface HwlabNodeControlPlaneSourceWorkspaceBootstrapSpec {
readonly configPath: string;
readonly targetId: string;
readonly node: string;
readonly lane: string;
readonly ciNamespace: string;
readonly serviceAccountName: string;
readonly toolsImage: string;
readonly imagePullPolicy: "Always" | "IfNotPresent" | "Never";
readonly gitReadUrl: string;
readonly gitWriteUrl: string;
readonly gitMirrorNamespace: string;
}
export function runHwlabNodeControlPlaneInfra(args: string[]): Record<string, unknown> | RenderedCliResult {
if (args[0] === "tools-image") {
const options = parseToolsImageOptions(args.slice(1));
@@ -316,6 +330,23 @@ export function hwlabNodeControlPlaneCiGitWorkspaceSecret(nodeId: string, lane:
};
}
export function hwlabNodeControlPlaneSourceWorkspaceBootstrap(nodeId: string, lane: string): HwlabNodeControlPlaneSourceWorkspaceBootstrapSpec {
const { target } = controlPlaneContext(nodeId, lane);
return {
configPath: HWLAB_NODE_CONTROL_PLANE_CONFIG_PATH,
targetId: target.id,
node: target.node,
lane: target.lane,
ciNamespace: target.ciNamespace,
serviceAccountName: target.tekton.serviceAccountName,
toolsImage: target.tekton.toolsImage.output,
imagePullPolicy: target.tekton.toolsImage.imagePullPolicy,
gitReadUrl: target.gitMirror.readUrl,
gitWriteUrl: target.gitMirror.writeUrl,
gitMirrorNamespace: target.gitMirror.namespace,
};
}
export function hwlabNodeControlPlaneInfraHelp(): Record<string, unknown> {
return {
ok: true,