![]() Previously, it was possible for reusable CPUs and reusable devices (i.e. those previously consumed by init containers) to not be reused by subsequent init containers or app containers if the TopologyManager was enabled. This would happen because hint generation for the TopologyManager was not considering the reusable devices when it made its hint calculation. As such, it would sometimes: 1) Generate a hint for a differnent NUMA node, causing the CPUs and devices to be allocated from that node instead of the one where the reusable devices live; or 2) End up thinking there were not enough CPUs or devices to allocate and throw a TopologyAffinity admission error This patch fixes this by ensuring that reusable CPUs and devices are considered as part of TopologyHint generation. This frunctionality is difficult to unit test since it spans multiple components, but an e2e test will be added in a subsequent patch to test this functionality. |
||
---|---|---|
.. | ||
checkpoint | ||
BUILD | ||
device_plugin_stub.go | ||
endpoint_test.go | ||
endpoint.go | ||
manager_stub.go | ||
manager_test.go | ||
manager.go | ||
OWNERS | ||
pod_devices.go | ||
topology_hints_test.go | ||
topology_hints.go | ||
types.go |