code: func (r *Resource) Add(rl v1.ResourceList) {
  	if r == nil {
  		return
  	}
  
  	for rName, rQuant := range rl {
  		switch rName {
  		case v1.ResourceCPU:
  			r.MilliCPU += rQuant.MilliValue()
  		case v1.ResourceMemory:
  			r.Memory += rQuant.Value()
  		case v1.ResourcePods:
  			r.AllowedPodNumber += int(rQuant.Value())
  		case v1.ResourceEphemeralStorage:
  			r.EphemeralStorage += rQuant.Value()
  		default:
  			if v1helper.IsScalarResourceName(rName) {
  				r.AddScalar(rName, rQuant.Value())
  			}
  		}
  	}
  }
docs: // Add adds ResourceList into Resource.