feat(network-form): add DriverOptsEntries to network form schema and UI

- Introduced DriverOptsEntries to the network form schema, allowing users to specify driver options for networks.
- Updated the form UI to support adding, editing, and removing driver options dynamically.
- Adjusted the backend schema to accept driver options as a record of key-value pairs.
This commit is contained in:
Mauricio Siu
2026-02-05 23:18:41 -06:00
parent 8872dc178c
commit c65026353a
2 changed files with 115 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ export const NetworkSwarmSchema = z.array(
.object({
Target: z.string().optional(),
Aliases: z.array(z.string()).optional(),
DriverOpts: z.object({}).optional(),
DriverOpts: z.record(z.string()).optional(),
})
.strict(),
);