code: func resourceVSphereDRSVMOverrideFindEntry(
  	cluster *object.ClusterComputeResource,
  	vm *object.VirtualMachine,
  ) (*types.ClusterDrsVmConfigInfo, error) {
  	props, err := clustercomputeresource.Properties(cluster)
  	if err != nil {
  		return nil, fmt.Errorf("error fetching cluster properties: %s", err)
  	}
  
  	for _, info := range props.ConfigurationEx.(*types.ClusterConfigInfoEx).DrsVmConfig {
  		if info.Key == vm.Reference() {
  			log.Printf("[DEBUG] Found DRS config info for VM %q in cluster %q", vm.Name(), cluster.Name())
  			return &info, nil
  		}
  	}
  
  	log.Printf("[DEBUG] No DRS config info found for VM %q in cluster %q", vm.Name(), cluster.Name())
  	return nil, nil
  }
docs: // resourceVSphereDRSVMOverrideFindEntry attempts to locate an existing DRS VM
  // config in a cluster's configuration. It's used by the resource's read
  // functionality and tests. nil is returned if the entry cannot be found.