Refactor to use the functions in component-helpers to calculate pod resource #1688
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
Refactor the code to use library functions in component-helpers:
https://github.com/kubernetes/kubectl/blob/master/pkg/util/resource/resource.go#L40
https://github.com/kubernetes/kubectl/blob/master/pkg/util/resource/resource.go#L96
Why is this needed:
PodRequests and PodLimits method exists in
staging/src/k8s.io/component-helpers/resource/helpers.go
. Refactor the code to avoid duplicating podRequests and podLimits method.The text was updated successfully, but these errors were encountered: