File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
plugin/pkg/admission/limitranger Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,8 @@ func PodValidateLimitFunc(limitRange *corev1.LimitRange, pod *api.Pod) error {
545
545
546
546
// podRequests is a simplified version of pkg/api/v1/resource/PodRequests that operates against the core version of
547
547
// pod. Any changes to that calculation should be reflected here.
548
+ // NOTE: We do not want to check status resources here, only the spec. This is equivalent to setting
549
+ // UseStatusResources=false in the common helper.
548
550
// TODO: Maybe we can consider doing a partial conversion of the pod to a v1
549
551
// type and then using the pkg/api/v1/resource/PodRequests.
550
552
func podRequests (pod * api.Pod ) api.ResourceList {
@@ -585,6 +587,8 @@ func podRequests(pod *api.Pod) api.ResourceList {
585
587
586
588
// podLimits is a simplified version of pkg/api/v1/resource/PodLimits that operates against the core version of
587
589
// pod. Any changes to that calculation should be reflected here.
590
+ // NOTE: We do not want to check status resources here, only the spec. This is equivalent to setting
591
+ // UseStatusResources=false in the common helper.
588
592
// TODO: Maybe we can consider doing a partial conversion of the pod to a v1
589
593
// type and then using the pkg/api/v1/resource/PodLimits.
590
594
func podLimits (pod * api.Pod ) api.ResourceList {
You can’t perform that action at this time.
0 commit comments