Skip to content

Add test for pod resources API- kep 3695 - #254

Open
Shilpa-Gokul wants to merge 1 commit into
kubernetes-sigs:mainfrom
Shilpa-Gokul:kep3695
Open

Add test for pod resources API- kep 3695#254
Shilpa-Gokul wants to merge 1 commit into
kubernetes-sigs:mainfrom
Shilpa-Gokul:kep3695

Conversation

@Shilpa-Gokul

@Shilpa-Gokul Shilpa-Gokul commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #186

Adds an end-to-end test and accompanying demo that verifies the kubelet PodResources gRPC API correctly exposes DRA-allocated devices via the dynamicResources field introduced by KEP-3695.

Verification is done through a short-lived debug pod created on the same node as the workload. The debug pod uses two containers:

  • curlimages/curl:latest (init container) — downloads api.proto from the Kubernetes v1.36.0 source into a shared EmptyDir volume. This is required because the kubelet gRPC server does not support server reflection.
  • fullstorydev/grpcurl:latest (query container) — mounts the kubelet socket via a HostPath volume and calls v1.PodResourcesLister/List using the downloaded proto file via -import-path/-proto flags, running privileged as root to access the socket.

The response is captured from pod logs and asserted to contain the expected dynamicResources fields: pod name, container name, driver name, and claim name.

Assisted by: IBM Bob

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 10, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Shilpa-Gokul
Once this PR has been reviewed and has the lgtm label, please assign bart0sh for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 requested review from byako and klueska August 10, 2026 07:07
@kubernetes-prow kubernetes-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 10, 2026
@nojnhuh nojnhuh moved this from 🆕 New to 👀 In review in Dynamic Resource Allocation Aug 10, 2026
Comment thread test/e2e/e2e_setup_test.go Outdated
Comment thread test/e2e/e2e_setup_test.go Outdated
Signed-off-by: Shilpa-Gokul <shilpa.gokul@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add example for PodResources API with DRA resources (KEP-3695)

2 participants