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
Existing JSON passthrough such as PR #1340's `--resources-json` should be
123
-
renamed to `--driver-config-json` before it becomes a stable CLI contract, or
124
-
treated as transitional if it has already shipped. The flag writes the provided
125
-
object into `SandboxTemplate.driver_config`; it does not populate
126
-
`SandboxSpec.resource_requirements`.
106
+
JSON-formatted driver-specific configuration is a related but separate API
107
+
topic. Issue #1492 tracks exposing an opaque driver-owned configuration surface,
108
+
potentially named `driver_config`. This RFC only requires that driver-native
109
+
configuration remains separate from portable resource requirements.
127
110
128
111
### Resource requirements
129
112
@@ -218,6 +201,14 @@ Compute requirements are fungible CPU and memory requirements. They differ from
218
201
devices because they usually do not need exact identity or driver-specific
219
202
selection.
220
203
204
+
This RFC standardizes only CPU and memory as initial portable compute
205
+
requirements. Other compute-shaped constraints such as ephemeral storage, huge
206
+
pages, PID limits, shared memory, or similar cgroup-backed limits may be added
207
+
later, but only once their request/limit semantics are clear and they can map to
208
+
multiple drivers. Driver-specific support for such constraints should stay in
209
+
driver-specific configuration until it is portable enough for the first-party
210
+
API.
211
+
221
212
Example request:
222
213
223
214
```yaml
@@ -238,6 +229,13 @@ Example realizations:
238
229
| Podman | Apply supported runtime limits such as CPU quota and memory limit. Requests are capacity checks when the driver can evaluate host capacity. |
239
230
| VM | Map CPU and memory limits to VM vCPU count and guest memory allocation. The driver may require request and limit to be equal when it cannot represent separate request/limit semantics. |
240
231
232
+
Compute requirements describe the sandbox workload that the driver provisions,
233
+
not every runtime-managed helper process. If a driver later runs the proxy,
234
+
supervisor, or other control-plane helpers in separate containers, sidecars, or
235
+
pods, it may apply fixed overhead or expose helper-specific settings through
236
+
driver-specific configuration. Those helper resources are driver implementation
237
+
details unless a later RFC promotes them into portable resource requirements.
238
+
241
239
Drivers must reject compute requirements they cannot honor. They must not
242
240
silently accept a limit or request that has no effect.
0 commit comments