mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 06:04:02 +00:00
All invokers of GetNonzeroRequestForResource in k/k are either setting the resource name to CPU/Memory or are checking if the requested resource name is scalar after the invocation. Thus, it's unnecessary to check for scalar resource name again. In the worst case, GetNonzeroRequestForResource returns non-zero resource quantity which can be ignored by an invoker by running IsResourceName helpers afterwards.