code: func MergeContainerResourceLimits(container *v1.Container,
  	allocatable v1.ResourceList) {
  	if container.Resources.Limits == nil {
  		container.Resources.Limits = make(v1.ResourceList)
  	}
  	for _, resource := range []v1.ResourceName{v1.ResourceCPU, v1.ResourceMemory, v1.ResourceEphemeralStorage} {
  		if quantity, exists := container.Resources.Limits[resource]; !exists || quantity.IsZero() {
  			if cap, exists := allocatable[resource]; exists {
  				container.Resources.Limits[resource] = *cap.Copy()
  			}
  		}
  	}
  }
docs: // MergeContainerResourceLimits checks if a limit is applied for
  // the container, and if not, it sets the limit to the passed resource list.