rfc-0006: add driver config passthrough proposal#1589
Conversation
24ceb12 to
9ec6a42
Compare
|
Since we are at it, would a |
|
Updated in e6a35c7 to address the question about whether this should apply to other top-level resources. The RFC now scopes this proposal explicitly to sandbox compute drivers, adds a non-goal for a generic extension mechanism across all OpenShell resources, and adds a Scope boundary section plus an Alternatives entry for generic passthrough. The intent is to leave analogous extension points possible, but require resource-specific designs for ownership, lifecycle, authorization, secret handling, auditing, and compatibility. |
|
Concrete proposal/example that may be useful for the {
"resource_requirements": {
"gpu": {
"count": 1
}
},
"template": {
"driver_config": {
"docker": {
"gpu_device_ids": ["nvidia.com/gpu=0"]
},
"podman": {
"gpu_device_ids": ["nvidia.com/gpu=0"]
},
"vm": {
"gpu_device_ids": ["0000:2d:00.0"]
}
}
}
}The intent is that portable GPU intent stays in For example, if the active gateway uses Docker, the Docker driver receives only: {
"gpu_device_ids": ["nvidia.com/gpu=0"]
}The selected driver owns validation of that inner schema. For this GPU example, This should also be possible to express from the command line, not only by constructing the API object directly. For example, a CLI surface could accept the same driver-keyed envelope through a JSON input such as |
PR Review StatusValidation: this is maintainer-authored and structurally valid RFC work under Review findings:
Docs: this is an RFC-only PR; Fern docs and navigation are not required. Next state: |
|
/ok to test 95ccfb3 |
Check FailureThe required The failed job reports that Next action: update and commit Next state: |
|
Hi @elezar, the HAMi use case from #1065 needs the k8s driver to pass arbitrary resource limits (e.g. nvidia.com/gpumem, nvidia.com/gpucores) through driver_config, not just device selection via gpu_device_ids. Would something like this be in scope for the k8s schema? |
Re-check After Contributor UpdateI re-evaluated latest head Disposition: needs author or maintainer response. Remaining items:
This also serves as an author follow-up nudge because the prior gator feedback and check-failure action have been waiting for more than 48 business hours. Next state: |
|
@elezar lets rename this to RFC-0006 to deconflict with other RFCs. I think we should try and get this one merged as well. Proposal LGTM and we've already started implementing. |
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
6f99932 to
3210aab
Compare
PR Review StatusValidation: this maintainer-authored RFC/docs PR is project-valid. It records the implemented Review findings:
Docs: Fern docs are present, but the Thanks @drew, I checked your rename request and the current head has moved the RFC to Next state: |
3210aab to
907047b
Compare
PR Review StatusValidation: this maintainer-authored RFC/docs PR is project-valid. It documents the implemented Review findings:
Docs: Fern docs are present, but their Next state: |
907047b to
a0c219b
Compare
PR Review StatusValidation: this maintainer-authored RFC/docs PR is project-valid. It documents the implemented Review findings:
Docs: driver README coverage is updated, but the user-facing Fern compute-driver reference still needs the whitespace-validation behavior above before moving to pipeline watch. Next state: |
a0c219b to
eae344d
Compare
|
🌿 Preview your docs: https://nvidia-preview-pr-1589.docs.buildwithfern.com/openshell |
Maintainer Approval NeededGator validation and PR monitoring are complete for head Validation: this maintainer-authored RFC/docs PR is project-valid. It documents the implemented Review: no blocking findings remain. The independent reviewer confirmed the earlier stability and Fern docs concerns are resolved; it only noted a non-blocking signoff process check, and Docs: updated. The driver READMEs and Fern compute-driver reference now cover Docker/Podman Checks: E2E: N/A for this docs/RFC-only change; no Human maintainer approval is now required. |
Summary
Add RFC 0006 documenting the implemented
driver_configpassthrough for driver-owned sandbox creation settings.Related Issue
Addresses #1492
Changes
SandboxTemplate.driver_configenvelope and driver-sideDriverSandboxTemplate.driver_configforwarding model.selinux_labelsupport and mount-field whitespace validation.selinux_labeland whitespace rules.Testing
Docs-only change; no unit or E2E tests added.
mise run pre-commitis not required for doc-only changes.Checklist