code: func (r *Registry) getEntityComputeResource(item mo.Entity) mo.Entity {
  	for {
  		parent := item.Entity().Parent
  
  		item = r.Get(*parent).(mo.Entity)
  
  		switch item.Reference().Type {
  		case "ComputeResource":
  			return item
  		case "ClusterComputeResource":
  			return item
  		}
  	}
  }
docs: // getEntityComputeResource returns the ComputeResource parent for the given item.
  // A ResourcePool for example may have N Parents of type ResourcePool, but the top
  // most Parent pool is always a ComputeResource child.