nokia / CPU-Pooler

A Device Plugin for Kubernetes, which exposes the CPU cores as consumable Devices to the Kubernetes scheduler.
BSD 3-Clause "New" or "Revised" License
92 stars 22 forks source link

Check ContainerStatuses lenght #46

Closed balintTobik closed 4 years ago

balintTobik commented 4 years ago

Sometimes, setter handle pod so early, that pod's Status.ContainerStatuses is empyt. Because of that, cannot determine containerID, and throw errors during cpuset path searching. It can be avoided with checking length of this list in shouldPodBeHandled function.

In addition add pod's name to error logs, to help decode it.