kubernetes/pkg/api/v1/resource
Brian Pursley b04ca79445 Add unit tests showing the effect of unlimited containers when calculating pod limits.
This behavior is surprising to some users (see kubectl issues #1110 and #1385), who expect that an unlimited container will result in an unlimited pod, but that is not how PodLimits() works, as it ignores any containers that do not specify limits when calculating the pod limits.

This commit adds unit tests that confirm this behavior.
2023-04-08 18:55:45 -04:00
..
helpers_test.go Add unit tests showing the effect of unlimited containers when calculating pod limits. 2023-04-08 18:55:45 -04:00
helpers.go Fix up after rebasing on top of dedup pod resource req calculation PR 2023-03-10 15:21:56 +00:00