Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for including/excluding resource pools by cluster #883

Open
atc0005 opened this issue Aug 8, 2023 · 1 comment
Open

Add support for including/excluding resource pools by cluster #883

atc0005 opened this issue Aug 8, 2023 · 1 comment
Assignees
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Aug 8, 2023

Overview

Similar to the work on #809 or #882, we can add support for including/excluding resource pools by cluster in order to prevent evaluating resources running outside of an intended cluster in the same datacenter.

Context

I recently encountered a scenario where a new offsite host (ComputeResource) was added to an existing vSphere Datacenter that was not made part of the same existing cluster (ClusterComputeResource). This added another "parent" resource pool to the mix also named Resources.

Datacenter (ExampleDC)
	- Hosts & Clusters (hostFolder property)
		- HostSystem (192.168.2.200)
		- Cluster (XYZ-Hosted)

If we try to exclude the Resources pool by name we could end up matching both the Resources pool in the cluster and the Resources pool associated with the new non-clustered host.

Once support is available for filtering based on ResourcePool Managed Object ID (MOID) we can reliably exclude the host-based Resources pool based on a MOID, but once support is available for filtering based on a cluster value we can limit evaluation to just that cluster (or exclude the cluster entirely).

This can be considered a more fine-grained control than what is to be added by #882.

References

@atc0005 atc0005 added this to the Future milestone Aug 8, 2023
@atc0005 atc0005 self-assigned this Aug 8, 2023
@atc0005
Copy link
Owner Author

atc0005 commented Aug 8, 2023

It might also be useful to provide a flag that toggles "evaluate resource pools from clusters only" behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant