Add controller node selector and accordion wizards

This commit is contained in:
mmckeen
2026-04-28 15:40:25 +00:00
parent 38b651d460
commit 225b3c32bf
7 changed files with 429 additions and 23 deletions
+8
View File
@@ -1,6 +1,7 @@
import { NextResponse } from "next/server"
import { Client } from "ssh2"
import { buildControllerNodePlan, type ControllerPlanRequest } from "@/app/lib/controllerNodePlan"
import { upsertControllerNode } from "@/app/lib/controllerNodeRegistry"
export const runtime = "nodejs"
@@ -147,6 +148,13 @@ export async function POST(request: Request) {
acceptUnknownHostKey,
expectedHostKeySha256,
})
await upsertControllerNode({
id: plan.controller.name,
name: plan.controller.name,
host: plan.controller.host,
url: plan.controller.url,
role: "controller-node",
})
return NextResponse.json({
ok: true,