code: func getCgroupConfig(rl v1.ResourceList) *ResourceConfig {
  	// TODO(vishh): Set CPU Quota if necessary.
  	if rl == nil {
  		return nil
  	}
  	var rc ResourceConfig
  	if q, exists := rl[v1.ResourceMemory]; exists {
  		// Memory is defined in bytes.
  		val := q.Value()
  		rc.Memory = &val
  	}
  	if q, exists := rl[v1.ResourceCPU]; exists {
  		// CPU is defined in milli-cores.
  		val := MilliCPUToShares(q.MilliValue())
  		rc.CpuShares = &val
  	}
  	if q, exists := rl[pidlimit.PIDs]; exists {
  		val := q.Value()
  		rc.PidsLimit = &val
  	}
  	rc.HugePageLimit = HugePageLimits(rl)
  
  	return &rc
  }
docs: // getCgroupConfig returns a ResourceConfig object that can be used to create or update cgroups via CgroupManager interface.