Closed vasrem closed 1 month ago
Closing this PR as this bugfix breaks the DRA integration. To support the DRA integration, we have to switch the e2e test to use Immediate
allocation which is not supported by the dra-example https://github.com/kubernetes-sigs/dra-example-driver/blob/classic-dra/cmd/dra-example-controller/driver.go#L108-L110.
On a similar note, DRA API for 1.31 Kubernetes will change, so the plan is to:
If a NAD has the resourceName annotation set, then it means that the subsequent CNI calls should provide the deviceID for that particular resource.
Previously, we were doing best effort to get the deviceID from kubelet. With this patch, we guarantee the deviceID will be passed in the CNI call and fail if we can't find any deviceID.