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

Provider vdc resource #1073

Merged
merged 38 commits into from
Jul 12, 2023
Merged

Provider vdc resource #1073

merged 38 commits into from
Jul 12, 2023

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Jun 25, 2023

Address Issue #326.

  • Add resource vcd_provider_vdc
  • Add data sources
    • vcd_resource_pool
    • vcd_network_pool

Testing:

go test -tags functional -run TestAccVcdResourceProviderVdc -vcd-add-provider -vcd-verbose -v -timeout 0
Connecting to https://xxxxxxxxx.com/api (version 10.5.0.21892695)
as user administrator@System (using password)
=== RUN   TestAccVcdResourceProviderVdc
step  0 - create
step  1 - rename
step  2 - rename back
step  3 - add resource pool and storage profile
step  4 - remove resource pool and storage profile
step  5 - disable provider VDC
step  6 - enable provider VDC
step  7 - import provider VDC
--- PASS: TestAccVcdResourceProviderVdc (133.89s)
PASS

Note: you need to have at least one free resource pool to test provider VDC creation, and at least two of them to test update.

Also fixes Issue #1066

Giuseppe Maxia added 4 commits June 25, 2023 21:51
Signed-off-by: Giuseppe Maxia <[email protected]>
* resource vcd_provider_vdc
* data source vcd_network_pool
* data source vcd_resource_pool
* first test for vcd_provider_vdc

Signed-off-by: Giuseppe Maxia <[email protected]>
@dataclouder dataclouder self-assigned this Jun 25, 2023
Giuseppe Maxia added 19 commits July 2, 2023 20:40
ObjectMap converts list of complex objects into lists of simpler ones

Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
WIP
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
@dataclouder dataclouder marked this pull request as ready for review July 3, 2023 15:44
Signed-off-by: Giuseppe Maxia <[email protected]>
Giuseppe Maxia added 2 commits July 4, 2023 07:59
Signed-off-by: Giuseppe Maxia <[email protected]>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

First scan - will dig more

vcd/resource_vcd_provider_vdc.go Show resolved Hide resolved
vcd/resource_vcd_provider_vdc.go Outdated Show resolved Hide resolved
vcd/resource_vcd_provider_vdc.go Outdated Show resolved Hide resolved
vcd/resource_vcd_provider_vdc.go Outdated Show resolved Hide resolved
vcd/resource_vcd_provider_vdc.go Show resolved Hide resolved
vcd/resource_vcd_provider_vdc.go Show resolved Hide resolved
vcd/resource_vcd_provider_vdc.go Show resolved Hide resolved
Giuseppe Maxia added 4 commits July 4, 2023 17:39
Signed-off-by: Giuseppe Maxia <[email protected]>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

I have manually validated the creation process and also checked that the fields, that support update - could be updated. As well as Org VDC can be created based on this new pVdc

Giuseppe Maxia added 5 commits July 6, 2023 15:02
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Signed-off-by: Giuseppe Maxia <[email protected]>
Copy link

@adezxc adezxc left a comment

Choose a reason for hiding this comment

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

LGTM, tried the resource/data sources manually on 10.5.0 and everything seems to work fine.

Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Such an awesome long waited feature! Adding suggestions for documentation in-line.

.changes/v3.10.0/1073-features.md Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
website/docs/d/resource_pool.html.markdown Outdated Show resolved Hide resolved
website/docs/r/provider_vdc.html.markdown Outdated Show resolved Hide resolved
Signed-off-by: Giuseppe Maxia <[email protected]>
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Thank you a great PR and polishes!

Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Giuseppe Maxia <[email protected]>
@dataclouder dataclouder merged commit 91ac3bb into vmware:main Jul 12, 2023
@dataclouder dataclouder deleted the provider-vdc branch November 20, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants