kubernetes/pkg/kubelet/cm/devicemanager
Francesco Romani 1b6efa5e21 devicemanager: skip unhealthy devs in GetAllocatable
The GetAllocatableDevices, needed to support the podresources
API, doesn't take into account the device health when computing
its output.

In this PR we address this gap and add unit tests along the way
to prevent regressions. This gives us a good initial coverage,
E2E tests to cover this case are much harder to write, because
we would need to inject faults to trigger the unhealthy status.
We will evaluate if adding these tests into later PRs.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-09-22 19:20:04 +02:00
..
checkpoint hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
device_plugin_stub.go Migrate missed log entries in kubelet 2021-03-18 14:26:26 -07:00
endpoint_test.go Use unique socket name per cm test 2020-09-04 14:55:23 -04:00
endpoint.go add info for possible failed listAndWatch grpc call 2021-06-17 16:25:20 +08:00
manager_stub.go node: podresources: make GetDevices() consistent 2021-03-09 13:13:36 +01:00
manager_test.go devicemanager: skip unhealthy devs in GetAllocatable 2021-09-22 19:20:04 +02:00
manager.go devicemanager: skip unhealthy devs in GetAllocatable 2021-09-22 19:20:04 +02:00
OWNERS Add klueska as reviewer for CPUManager and devicemanager 2019-10-03 13:01:41 -07:00
pod_devices_test.go devicemanager: skip unhealthy devs in GetAllocatable 2021-09-22 19:20:04 +02:00
pod_devices.go devicemanager: skip unhealthy devs in GetAllocatable 2021-09-22 19:20:04 +02:00
topology_hints_test.go node: podresources: make GetDevices() consistent 2021-03-09 13:13:36 +01:00
topology_hints.go device manager: do not clean admitted pods from the state 2021-08-08 16:46:06 +03:00
types.go Migrate devicemanager to structured logging 2021-03-14 11:57:06 -04:00