Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 2e9f71b

Browse files
add top level "description" for CLI customization of the root device
(cherry picked from commit 354d6d8)
1 parent 2b98092 commit 2e9f71b

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

packages/jumpstarter/jumpstarter/config/exporter.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class ExporterConfigV1Alpha1(BaseModel):
9191
token: str | None = Field(default=None)
9292
grpcOptions: dict[str, str | int] | None = Field(default_factory=dict)
9393

94+
description: str | None = None
9495
export: dict[str, ExporterConfigV1Alpha1DriverInstance] = Field(default_factory=dict)
9596

9697
path: Path | None = Field(default=None)
@@ -152,7 +153,11 @@ async def serve_unix_async(self):
152153
from jumpstarter.exporter import Session
153154

154155
with Session(
155-
root_device=ExporterConfigV1Alpha1DriverInstance(children=self.export).instantiate(),
156+
root_device=ExporterConfigV1Alpha1DriverInstance(
157+
type="jumpstarter_driver_composite.driver.Composite",
158+
description=self.description,
159+
children=self.export,
160+
).instantiate(),
156161
) as session:
157162
async with session.serve_unix_async() as path:
158163
yield path
@@ -185,7 +190,11 @@ async def channel_factory():
185190
try:
186191
exporter = Exporter(
187192
channel_factory=channel_factory,
188-
device_factory=ExporterConfigV1Alpha1DriverInstance(children=self.export).instantiate,
193+
device_factory=ExporterConfigV1Alpha1DriverInstance(
194+
type="jumpstarter_driver_composite.driver.Composite",
195+
description=self.description,
196+
children=self.export,
197+
).instantiate,
189198
tls=self.tls,
190199
grpc_options=self.grpcOptions,
191200
)

0 commit comments

Comments
 (0)