mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 23:57:49 +00:00
No need to calculate ResourceEphemeralStorage additionally
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
24e6b03780
commit
b1ad834dfb
@ -65,12 +65,6 @@ func GetRequestForResource(resourceName v1.ResourceName, requests *v1.ResourceLi
|
|||||||
return *resource.NewQuantity(DefaultMemoryRequest, resource.DecimalSI)
|
return *resource.NewQuantity(DefaultMemoryRequest, resource.DecimalSI)
|
||||||
}
|
}
|
||||||
return requests.Memory().DeepCopy()
|
return requests.Memory().DeepCopy()
|
||||||
case v1.ResourceEphemeralStorage:
|
|
||||||
quantity, found := (*requests)[v1.ResourceEphemeralStorage]
|
|
||||||
if !found {
|
|
||||||
return resource.Quantity{}
|
|
||||||
}
|
|
||||||
return quantity.DeepCopy()
|
|
||||||
default:
|
default:
|
||||||
quantity, found := (*requests)[resourceName]
|
quantity, found := (*requests)[resourceName]
|
||||||
if !found {
|
if !found {
|
||||||
|
Loading…
Reference in New Issue
Block a user