-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat: datasource for virtual machines #498
base: main
Are you sure you want to change the base?
feat: datasource for virtual machines #498
Conversation
Thanks @castorsky. I’ll review this week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this pull request - this is great to see and could be a basis for many additional data sources.
Added suggestions for changes along with other comments.
Let me know if you have any questions or concerns.
Ryan Johnson
Distinguished Engineer, VMware by Broadcom
Ryan, thank you for the very detailed review of my work. I will do my best to correct the plugin in the next few days. |
@tenthirtyam, I rewrote the code as per your recommendations, with one exception: package
|
Awesome! I'll do another review early this week! |
43f01ae
to
24c8260
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Since tags
can long pass more than one tag category and name, should it be represented as singular tag
?
Also, it looks like a go fmt ./...
is needed for the CI.
24c8260
to
6894968
Compare
I took care of the fmt on the last commit and the CI is good now. |
b571315
to
9c69cf3
Compare
Hi @castorsky 👋 - I've pushed updates to your branch with the requested changes from 2024-12-08. I'll do another review today and then plan to test the functionality along with Lucas. |
0bca530
to
fc85e56
Compare
- Made minor changes to documentation. - Standard `errors` and `fmt` were used for custom errors. - field `Node` was renamed to `Host`. - field `VmTags` was renamed to `Tags` - package `virtual_machine` was renamed to `virtualmachine` - `driver` and `testing` were moved to `common` location
fc85e56
to
6fdd994
Compare
Hi @tenthirtyam! I agree with you about tag(s) field and renamed it. It was the |
And drop info about dynamic blocks in datasource.
I have implemented one of datasources which was requested in #196.
This datasource searches the vSphere cluster for some VMs that matches specified filters and returns VM name for one (and only one) machine. I have chosen such behavior because it will be straightforward for vsphere-clone builder - there will be no need for user to manipulate lists in locals.
I have included some tests and documentation for datasource.
By strange coincidence issues for vSphere and Proxmox datasources share the same ID. =)
Partially closes #196