Skip to content

DRA: relocate extended-resource and device-metadata sections - #56642

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes:dev-1.37from
Caesarsage:dra-review-followup
Aug 5, 2026
Merged

DRA: relocate extended-resource and device-metadata sections#56642
kubernetes-prow[bot] merged 1 commit into
kubernetes:dev-1.37from
Caesarsage:dra-review-followup

Conversation

@Caesarsage

Copy link
Copy Markdown
Contributor

Follow-up to #56295 addressing review feedback.

  • Move "Extended resource allocation by DRA" from dra-features → dra-api.
  • Move "DRA device metadata in containers" from dra-observability → dra-features.
  • Soften the optional-features intro framing.

DeviceTaintRule API version was left out — already handled by #56265.

@kubernetes-prow kubernetes-prow Bot added this to the 1.37 milestone Jul 28, 2026
@netlify

netlify Bot commented Jul 28, 2026

Copy link
Copy Markdown

👷 Deploy Preview for kubernetes-io-vnext-staging processing.

Name Link
🔨 Latest commit f1e18f8
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-vnext-staging/deploys/6a72e8a3bc45280008ba68ed

@kubernetes-prow kubernetes-prow Bot added the language/en Issues or PRs related to English language label Jul 28, 2026
@kubernetes-prow
kubernetes-prow Bot requested review from klueska and pohly July 28, 2026 00:52
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 28, 2026
@netlify

netlify Bot commented Jul 28, 2026

Copy link
Copy Markdown

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit f1e18f8
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/6a72e8a3785e5900081de618
😎 Deploy Preview https://deploy-preview-56642--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Caesarsage

Copy link
Copy Markdown
Contributor Author

/wg device-management

@kubernetes-prow kubernetes-prow Bot added the wg/device-management Categorizes an issue or PR as relevant to WG Device Management. label Jul 28, 2026
@lmktfy

lmktfy commented Jul 28, 2026

Copy link
Copy Markdown
Member

/label refactor

/lgtm

@kubernetes-prow kubernetes-prow Bot added the refactor Indicates a PR with large refactoring changes e.g. removes files or moves content label Jul 28, 2026
@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 28, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 5bd3ac448fcb14b7aa12bdfd0abfc718f152e503

@Arhell Arhell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@kubernetes-prow kubernetes-prow Bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jul 30, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from lmktfy July 30, 2026 19:47
@kubernetes-prow kubernetes-prow Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 30, 2026

@lmktfy lmktfy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it.

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 4, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 968eb0f75a14d51acd5c1fb41286925cfee42569

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2026
@lmktfy

lmktfy commented Aug 4, 2026

Copy link
Copy Markdown
Member

Oops, there's a merge conflict.
/approve cancel

@kubernetes-prow kubernetes-prow Bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 4, 2026
…n driver-support framing

Signed-off-by: caesarsage <destinyerhabor6@gmail.com>
@Caesarsage
Caesarsage force-pushed the dra-review-followup branch from 046cd0a to f1e18f8 Compare August 5, 2026 07:39
@kubernetes-prow kubernetes-prow Bot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 5, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from lmktfy August 5, 2026 07:39
@kubernetes-prow kubernetes-prow Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 5, 2026
@Caesarsage

Copy link
Copy Markdown
Contributor Author

Oops, there's a merge conflict. /approve cancel

Thanks, I have rebased

@katcosgrove

Copy link
Copy Markdown
Contributor

/lgtm

/assign @lmktfy

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 5, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 369945105bc58e1879949d9613147504ee945a3b

@lmktfy lmktfy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes our docs better.

/approve

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +487 to +523
### Device metadata protocol {#device-metadata-protocol}

The protocol consists of four rules:

1. **File paths.** Metadata files live inside containers under
`/var/run/kubernetes.io/dra-device-attributes`. For a directly referenced
ResourceClaim the path is
`resourceclaims/<claimName>/<requestName>/<driverName>-metadata.json`; for a
claim created from a ResourceClaimTemplate the path is
`resourceclaimtemplates/<podClaimName>/<requestName>/<driverName>-metadata.json`
(where `podClaimName` is `pod.spec.resourceClaims[].name`).

In cases where the ResourceClaim request uses the
[prioritized list](#prioritized-list) feature, only the top-level request
name is used for the `<requestName>` segment in the file path (that is,
the `/<subrequest>` portion is dropped). Inside the
JSON file, the `requests[].name` field carries the full
`<request>/<subrequest>` reference (for example, `gpu/high-memory`) so
that consumers can identify which alternative was allocated.

The path constants are defined in
[`k8s.io/dynamic-resource-allocation/api/metadata`](https://pkg.go.dev/k8s.io/dynamic-resource-allocation/api/metadata).

1. **JSON API.** Each file is a stream of one or more
[`DeviceMetadata`](https://pkg.go.dev/k8s.io/dynamic-resource-allocation/api/metadata/v1alpha1#DeviceMetadata)
objects serialized as versioned JSON with `apiVersion` and `kind`, following
Kubernetes API conventions. The same metadata is encoded once per supported
API version (newest first). All objects in the stream are semantically
equivalent; consumers should use the first object they can decode.

1. **Generation.** When a driver updates a metadata file the embedded
`metadata.generation` field must increase so consumers can detect changes.

1. **Container exposure.** Files are typically exposed via
{{< glossary_tooltip text="CDI" term_id="cdi" >}} bind-mounts, but other
mechanisms are permitted as long as the file appears at the correct path and
is read-only inside the container.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we could eventually move this inside https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/ - but with a lot of signposting and other work to make the move low friction for people reading the docs.

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lmktfy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 5, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 9c9c07b into kubernetes:dev-1.37 Aug 5, 2026
6 checks passed
@nojnhuh nojnhuh moved this from 👀 In review to ✅ Done in Dynamic Resource Allocation Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. refactor Indicates a PR with large refactoring changes e.g. removes files or moves content size/L Denotes a PR that changes 100-499 lines, ignoring generated files. wg/device-management Categorizes an issue or PR as relevant to WG Device Management.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants