KEP-4680: Add tests to validate ShareID does not interfere with DRA Resource Health Status#136758
Conversation
|
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retitle WIP: KEP-4680: Add tests to validate ShareID does not interfere with DRA Resource Health Status |
|
/test pull-kubernetes-unit-windows-master |
|
/test pull-kubernetes-node-kubelet-serial-containerd |
|
/kind feature |
| } | ||
| } | ||
|
|
||
| // genTestClaimInfoWithShareID generates claim info object with ShareID set on the device. |
There was a problem hiding this comment.
I think we can just extend genTestClaimInfo with shareID, and pass in nil in other cases it's called
There was a problem hiding this comment.
or, maybe even better, we just call genTestClaimInfo below, and then add the ShareID to the object after.
|
|
||
| // createTestObjectsWithShareID creates test objects (DeviceClass, ResourceClaim, Pod) for testing | ||
| // ShareID with health status integration. The ShareID is included in the device allocation result. | ||
| func createTestObjectsWithShareID(ctx context.Context, f *framework.Framework, driverName, className, claimName, podName, poolName, deviceName string, shareID *apitypes.UID) *v1.Pod { |
There was a problem hiding this comment.
same here as above, doesn't make sense to duplicate the function to me
…alth Status Signed-off-by: Harshal Patil <12152047+harche@users.noreply.github.com>
|
/retest-required |
|
/test pull-kubernetes-node-kubelet-serial-containerd |
|
/assign |
|
LGTM label has been added. DetailsGit tree hash: bda222fd41046449d7fe67a21ff11a9d3957a2d2 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: harche, SergeyKanzhelev The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
KEP-4680: Add tests to validate ShareID does not interfere with DRA Resource Health Status
What this PR does / why we need it:
Adds unit and e2e_node tests to validate that ShareID (DRAConsumableCapacity) does not interfere with Resource Health Status (KEP-4680).
These tests address a gap identified during the review of #134520, where @SergeyKanzhelev noted the need for tests to ensure both features work correctly together.
The new tests verify:
Which issue(s) this PR is related to:
Fixes : #135190
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: