added WithFlaky() to the device plugin test case: supports extended resources together with ResourceClaim

This commit is contained in:
yliao
2025-07-29 20:07:05 +00:00
parent 790393ae92
commit edfa9a5bd2

View File

@@ -921,9 +921,14 @@ var _ = framework.SIGDescribe("node")(framework.WithLabel("DRA"), func() {
}).WithTimeout(f.Timeouts.PodDelete).Should(gomega.HaveField("Status.Allocation", (*resourceapi.AllocationResult)(nil)))
})
// https://github.com/kubernetes/kubernetes/issues/133488
// It conflicts with "must run pods with extended resource on dra nodes and device plugin nodes" test case,
// because device plugin does not clean up the extended resource "example.com/resource", and kubelet still
// keeps "example.com/resource" : 0 in node.status.Capacity.
// add WithFlaky to filter out the following test until we can clean up the leaked "example.com/resource" in node.status.
if withKubelet {
// Serial because the example device plugin can only be deployed with one instance at a time.
f.It("supports extended resources together with ResourceClaim", f.WithSerial(), func(ctx context.Context) {
f.It("supports extended resources together with ResourceClaim", f.WithSerial(), f.WithFlaky(), func(ctx context.Context) {
extendedResourceName := deployDevicePlugin(ctx, f, nodes.NodeNames[0:1])
pod := b.PodExternal()