code: func hardEvictionReservation(thresholds []evictionapi.Threshold, capacity v1.ResourceList) v1.ResourceList {
  	if len(thresholds) == 0 {
  		return nil
  	}
  	ret := v1.ResourceList{}
  	for _, threshold := range thresholds {
  		if threshold.Operator != evictionapi.OpLessThan {
  			continue
  		}
  		switch threshold.Signal {
  		case evictionapi.SignalMemoryAvailable:
  			memoryCapacity := capacity[v1.ResourceMemory]
  			value := evictionapi.GetThresholdQuantity(threshold.Value, &memoryCapacity)
  			ret[v1.ResourceMemory] = *value
  		case evictionapi.SignalNodeFsAvailable:
  			storageCapacity := capacity[v1.ResourceEphemeralStorage]
  			value := evictionapi.GetThresholdQuantity(threshold.Value, &storageCapacity)
  			ret[v1.ResourceEphemeralStorage] = *value
  		}
  	}
  	return ret
  }
docs: // hardEvictionReservation returns a resourcelist that includes reservation of resources based on hard eviction thresholds.