Skip to content

DRA Extended Resource: support nodes where device plugin was uninstalled #133488

@yliaog

Description

@yliaog

What happened?

deployDevicePlugin leaks the extended resource example.com/resource in node's status.Allocatable/Capacity. This causes conflicts for multiple tests using the extended resource in the same cluster.

What did you expect to happen?

deployDevicePlugin does not leak the example.com/resource in node's status.Allocatable/Capacity, after the test deploying the device plugin completes, the example.com/resource should be cleaned up from node's status.Allocatalbe/Capacity.

How can we reproduce it (as minimally and precisely as possible)?

test/dra/dra.go has tests calling deployDevicePlugin, run the test would be able to reproduce the problem.

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
# paste output here

1.34

Cloud provider

KIND

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.sig/nodeCategorizes an issue or PR as relevant to SIG Node.triage/acceptedIndicates an issue or PR is ready to be actively worked on.wg/device-managementCategorizes an issue or PR as relevant to WG Device Management.

Type

No type

Projects

Status

🏗 In progress

Status

Triaged

Relationships

None yet

Development

No branches or pull requests

Issue actions