code: func podRequest(pod *v1.Pod, resourceName v1.ResourceName) resource.Quantity {
  	containerValue := resource.Quantity{Format: resource.BinarySI}
  	if resourceName == v1.ResourceEphemeralStorage && !utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolation) {
  		// if the local storage capacity isolation feature gate is disabled, pods request 0 disk
  		return containerValue
  	}
  	for i := range pod.Spec.Containers {
  		switch resourceName {
  		case v1.ResourceMemory:
  			containerValue.Add(*pod.Spec.Containers[i].Resources.Requests.Memory())
  		case v1.ResourceEphemeralStorage:
  			containerValue.Add(*pod.Spec.Containers[i].Resources.Requests.StorageEphemeral())
  		}
  	}
  	initValue := resource.Quantity{Format: resource.BinarySI}
  	for i := range pod.Spec.InitContainers {
  		switch resourceName {
  		case v1.ResourceMemory:
  			if initValue.Cmp(*pod.Spec.InitContainers[i].Resources.Requests.Memory()) < 0 {
  				initValue = *pod.Spec.InitContainers[i].Resources.Requests.Memory()
  			}
  		case v1.ResourceEphemeralStorage:
  			if initValue.Cmp(*pod.Spec.InitContainers[i].Resources.Requests.StorageEphemeral()) < 0 {
  				initValue = *pod.Spec.InitContainers[i].Resources.Requests.StorageEphemeral()
  			}
  		}
  	}
  	if containerValue.Cmp(initValue) > 0 {
  		return containerValue
  	}
  	return initValue
  }
docs: // podRequest returns the total resource request of a pod which is the
  // max(max of init container requests, sum of container requests)