Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 159 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ bytes = "1"
clap = { version = "4.5.50", features = ["derive", "env"] }
config = { version = "0.15.19", default-features = false, features = ["toml"] }
hex = "0.4"
hyper-util = { version = "0.1", features = ["server-auto", "service", "tokio"] }
image = { version = "0.25", default-features = false, features = ["png"] }
lettre = { version = "0.11", default-features = false, features = ["builder", "hostname", "pool", "sendmail-transport", "smtp-transport", "tokio1", "tokio1-rustls-tls"] }
jsonwebtoken = "9"
Expand All @@ -42,6 +43,9 @@ rand = "0.8"
redis = { version = "0.31.0", default-features = false, features = ["tokio-comp", "aio", "script"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "stream"] }
ring = "0.17"
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
rustls-pemfile = "2"
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12"] }
tokio-tungstenite = { version = "0.26", default-features = false, features = ["connect", "rustls-tls-native-roots"] }
rust-embed = "8"
sea-orm = { version = "2.0.0-rc.38", default-features = false, features = ["macros", "sqlx-postgres", "runtime-tokio-rustls", "with-json", "with-time", "with-uuid"] }
Expand All @@ -62,6 +66,7 @@ tracing-subscriber = { version = "0.3.20", features = ["env-filter", "fmt", "jso
url = "2.5.4"
uuid = { version = "1.18.1", features = ["serde", "v7"] }
walkdir = "2"
x509-parser = "0.18"
webp = "0.3"
zip = { version = "2", default-features = false, features = ["deflate"] }
bollard = "0.19"
Expand Down
1 change: 1 addition & 0 deletions apps/console/src/features/admin/admin-route.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ it("lists nodes with health state for administrators", async () => {
{
id: "node-1",
name: "build-node-1",
region: "default",
status: "active",
healthy: true,
build_enabled: true,
Expand Down
4 changes: 3 additions & 1 deletion apps/console/src/features/admin/admin.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type NodeStatus = "pending" | "active" | "draining" | "offline" | "disabl
export interface AdminNode {
id: string;
name: string;
region: string;
status: NodeStatus;
healthy: boolean;
build_enabled: boolean;
Expand Down Expand Up @@ -85,6 +86,7 @@ export interface AdminNodeConfigurationSync {
export interface NodeConfiguration {
node: {
id: string;
region: string;
control_api: string;
work_root: string;
capabilities: { build: boolean; serve: boolean };
Expand Down Expand Up @@ -716,7 +718,7 @@ export const adminApi = {
listNodes: () =>
request<{ nodes: AdminNode[]; local_process: AdminLocalProcessInfo }>("/api/v1/admin/nodes"),

createNode: (input: { name: string; start_local?: boolean }) =>
createNode: (input: { name: string; region?: string; start_local?: boolean }) =>
request<{
node: AdminNode;
token: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function jsonResponse(data: unknown): Response {
const configuration = {
node: {
id: "serve-node-1",
region: "default",
control_api: "http://127.0.0.1:7817",
work_root: "/data/node",
capabilities: { build: true, serve: true },
Expand Down Expand Up @@ -54,6 +55,7 @@ const configuration = {
const nodeFixture = {
id: "node-1",
name: "serve-node-1",
region: "default",
status: "active",
healthy: true,
build_enabled: false,
Expand Down
Loading
Loading