feat(consumable-shares): implements system-mediated sharing #1257
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 374 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1257"
general
weight: 0.35
johnbelamaric
<!-- Thanks for sending a pull request! See CONTRIBUTING.md for guidelines. -->
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support for Consumable Shares, allowing multiple
ResourceClaimobjects to share the same physical GPU or MIG device when configured via--consumable-shares.It also explicitly disallows using MPS when using consumable shares due to multi-claim MPS daemon limitations, while preserving standard per-claim MPS daemons when consumable shares is not used.
Which issue(s) this PR is related to:
fixes of #659
<!--
Use "Fixes #<issue number>" to auto-close the issue on merge.
Write "N/A" if there is no associated issue.
-->
Special notes for your reviewer:
ConsumableSharesfeature gate and--consumable-sharesCLI flag (disabled,memory,unlimited, or share count integer).ResourceSliceobjects withAllowMultipleAllocations: trueand permits overlapping claims with matching configs.Unprepareuses reference counting so shared GPUs/dynamic MIGs are only torn down when no active claims remain on the physical device.Preparerejects MPS claims when consumable shares is used on the node ("MPS sharing is not supported when consumable shares is enabled").Does this PR introduce a user-facing change?
<!--
Write "NONE" if there is no user-facing change.
Otherwise, describe the change for driver users / cluster admins. Examples:
Include "action required" if users must change configs or manifests when upgrading.
-->
``
release-note
`Added ConsumableShares feature gate and --consumable-shares flag to enable multi-claim GPU/MIG sharing. MPS sharing is explicitly disallowed when consumable shares is used.
docs
demo/specs/consumable-shares
make check testChecklist
<!-- Tick what applies; leave others unchecked. CI re-runs some of these, but catching them locally shortens the review loop. -->
passes locally
make check-generatepasses ifapi/changed (CRDs, deepcopy, informers, listers, clientset)
make check-modulespasses ifgo.mod/go.sumchanged
Tests added or updated for the change
Helm chart ( deployments/helm`) updated if flags, RBAC, or defaults changed