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

New resource: vsphere_compute_cluster_vm_group #506

Merged
merged 8 commits into from May 10, 2018

Conversation

vancluever
Copy link
Contributor

This is all of the work for the vsphere_compute_cluster_vm_group resource. This will be used as an input to a couple of the upcoming cluster rule resources.

@vancluever vancluever added enhancement Type: Enhancement new-resource Feature: New Resource labels May 7, 2018
@vancluever vancluever requested a review from a team May 7, 2018 19:43
Addresses some comments referring to incorrect resource names in most of
the override source files.
This is the full resource CRUD and import functionality for the
vsphere_cluster_vm_group resource. Tests will come next.
A number of things are in this update:

* First off, we've renamed the resource to
vsphere_compute_cluster_vm_group.  This is because the groups are
actually located within a cluster configuration and are not
transferrable to any other kind of cluster (ie: datastore clusters,
which actually don't have groups at all).
* Second off, we've had to add extra lookup logic to translate VM UUIDs
to MoRefs. This has been added into the shared helper package so it can
be re-used for upcoming work easier (as we add rules, there will be a
number of places this needs to be changed too).
* Lastly, tests have been added and the work necessary to get them
working has been done.

Completion is pending documentation.
And a small doc correction in the schema.
This is currently broken - from the looks of it there are some resource
or configuration issues starting the website docker container that need
fixing.
@vancluever vancluever force-pushed the f-vsphere-cluster-vm-group-resource branch from 90d03e5 to 81e9632 Compare May 8, 2018 03:48
Copy link
Contributor

@bill-rich bill-rich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return moids
}

// ManagedObjectReferences returns all MOIDs in a MOIDForUUIDResults, as ManagedObjectReferences as type VirtualMachine.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment line length

@vancluever vancluever merged commit e5686b2 into master May 10, 2018
@bill-rich bill-rich deleted the f-vsphere-cluster-vm-group-resource branch November 17, 2018 00:34
@hashicorp hashicorp locked and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Type: Enhancement new-resource Feature: New Resource
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants