You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a44137
Browse filesBrowse the repository at this point in the historyBrowse files
feat(gateway): read driver_dir from [openshell.gateway]
The gateway owns driver_dir. A driver_dir in a [openshell.drivers.<name>]
table is deprecated: it is stripped with a warning and used only when the
gateway section sets none.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Copy file name to clipboardExpand all lines: docs/how-it-works/gateways/configuration.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1547,7 +1547,7 @@ The gateway starts `openshell-driver-<name> serve` and passes the table as text
1547
1547
1548
1548
A driver exits with status 69 when its backend is not reachable and 78 when its table is invalid. It writes one JSON line describing the reason to standard output first. Standard error stays for logs.
1549
1549
1550
-
The gateway removes `driver_dir` from the table before forwarding it. It looks for the driver binary in `driver_dir`, then in `~/.local/libexec/openshell`, `/usr/libexec/openshell`, `/usr/local/libexec/openshell`, and `/usr/local/libexec`, then next to the gateway binary. The binary must be owned by root or the gateway user and must not be writable by group or others.
1550
+
Set `driver_dir` in `[openshell.gateway]`. A `driver_dir` in a driver table is deprecated: the gateway removes it with a warning and uses it only when `[openshell.gateway]` sets none. The gateway looks for the driver binary in `driver_dir`, then in `~/.local/libexec/openshell`, `/usr/libexec/openshell`, `/usr/local/libexec/openshell`, and `/usr/local/libexec`, then next to the gateway binary. The binary must be owned by root or the gateway user and must not be writable by group or others.
1551
1551
1552
1552
When no driver is selected, the gateway tries Kubernetes, then Podman, then Docker. For Podman it starts the driver with the operator's table, so a configured `socket_path` is honored. The first driver that binds its socket is kept and configured, so detection never starts a driver it then stops. A Podman table that is invalid, or a socket that is not reachable, moves detection to the next candidate and logs the reason. If a driver is selected by name, any such failure stops startup.
1553
1553
@@ -2118,6 +2118,8 @@ log_level = "info"
2118
2118
compute_driver = "vm"
2119
2119
# Gateway-owned CA injected into the selected local driver.
0 commit comments