mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Remove useless error
This commit is contained in:
@@ -86,10 +86,7 @@ func MilliCPUToShares(milliCPU int64) int64 {
|
||||
// ResourceConfigForPod takes the input pod and outputs the cgroup resource config.
|
||||
func ResourceConfigForPod(pod *v1.Pod) *ResourceConfig {
|
||||
// sum requests and limits.
|
||||
reqs, limits, err := resource.PodRequestsAndLimits(pod)
|
||||
if err != nil {
|
||||
return &ResourceConfig{}
|
||||
}
|
||||
reqs, limits := resource.PodRequestsAndLimits(pod)
|
||||
|
||||
cpuRequests := int64(0)
|
||||
cpuLimits := int64(0)
|
||||
|
||||
Reference in New Issue
Block a user