fix(hwlab): close d518 yaml cutover gaps
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user