diff --git a/api/utils.go b/api/utils.go index 49ce3d83..0b5fa780 100644 --- a/api/utils.go +++ b/api/utils.go @@ -171,6 +171,9 @@ func ResourceLimits(rr core.ResourceRequirements) core.ResourceList { } func ResourceRequests(rr core.ResourceRequirements) core.ResourceList { + if rr.Requests == nil { + return core.ResourceList{} + } return rr.Requests }