code: func getResourceLimits(pod *v1.Pod) *schedulernodeinfo.Resource {
  	result := &schedulernodeinfo.Resource{}
  	for _, container := range pod.Spec.Containers {
  		result.Add(container.Resources.Limits)
  	}
  
  	// take max_resource(sum_pod, any_init_container)
  	for _, container := range pod.Spec.InitContainers {
  		result.SetMaxResource(container.Resources.Limits)
  	}
  
  	return result
  }
docs: // getResourceLimits computes resource limits for input pod.
  // The reason to create this new function is to be consistent with other
  // priority functions because most or perhaps all priority functions work
  // with schedulernodeinfo.Resource.
  // TODO: cache it as part of metadata passed to priority functions.