### What would you like to be added?

We currently have this function https://github.com/kubernetes/kubernetes/blob/ae02f87bb47cd3e10e702ffe19225ff2dba73578/pkg/api/v1/resource/helpers.go#L50

It is used by both kube-scheduler and kubelet to calculate resource utilization.

It would be useful to have it in a library package, such as `k8s.io/component-helpers`.

### Why is this needed?

Multiple downstream projects need to calculate resource utilization, for quota management, billing, etc.

The resource calculation might always change, so these projects always have to catch up. The most recent change that I'm aware of is sidecar containers.
A library function to calculate Pod resource utilization
This is a GitHub Issue
repo:kubernetes
owner:kubernetes
Title : A library function to calculate Pod resource utilization
Issue date:

--- start body ---
### What would you like to be added?

We currently have this function https://github.com/kubernetes/kubernetes/blob/ae02f87bb47cd3e10e702ffe19225ff2dba73578/pkg/api/v1/resource/helpers.go#L50

It is used by both kube-scheduler and kubelet to calculate resource utilization.

It would be useful to have it in a library package, such as `k8s.io/component-helpers`.

### Why is this needed?

Multiple downstream projects need to calculate resource utilization, for quota management, billing, etc.

The resource calculation might always change, so these projects always have to catch up. The most recent change that I'm aware of is sidecar containers.
--- end body ---

None