mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
@@ -41,8 +41,8 @@ func (self *ResourceList) Memory() *resource.Quantity {
|
||||
return &resource.Quantity{}
|
||||
}
|
||||
|
||||
func (self *ResourceList) MaxPods() *resource.Quantity {
|
||||
if val, ok := (*self)[ResourceMaxPods]; ok {
|
||||
func (self *ResourceList) Pods() *resource.Quantity {
|
||||
if val, ok := (*self)[ResourcePods]; ok {
|
||||
return &val
|
||||
}
|
||||
return &resource.Quantity{}
|
||||
|
||||
Reference in New Issue
Block a user