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 vGPU policies #1167

Merged
merged 27 commits into from
Dec 4, 2023
Merged

Add support for vGPU policies #1167

merged 27 commits into from
Dec 4, 2023

Conversation

adezxc
Copy link
Contributor

@adezxc adezxc commented Nov 27, 2023

This PR adds some new things:

New resource and datasource: vcd_vm_vgpu_policy
New datasource: vcd_vgpu_profile
New field in vcd_org_vdc: vm_vgpu_policy_ids
New field in vcd_resource_pool datasource: cluster_moref

There is a hack and a questionable decision regarding the field vcd_vm_vgpu_policy.provider_vdc_scope.cluster_names: I'm not sure if there can be more than one cluster on which the provider VDC resides, so I have settled with a solution for ease of use: if a user doesn't specify any clusters, the provider tries to do it automatically by fetching the resource pool on which the PVDC is running.

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
…quests return asterisks for the pre shared key

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
@adezxc
Copy link
Contributor Author

adezxc commented Nov 27, 2023

Reminder: create changelog entry when we consider the feature complete

vcd/resource_vcd_nsxt_edgegateway_l2_vpn_tunnel.go Outdated Show resolved Hide resolved
vcd/resource_vcd_org_vdc.go Show resolved Hide resolved
vcd/resource_vcd_vm_sizing_policy.go Show resolved Hide resolved
website/docs/d/vgpu_profile.html.markdown Outdated Show resolved Hide resolved
website/docs/d/vm_vgpu_policy.html.markdown Outdated Show resolved Hide resolved
website/docs/d/vm_vgpu_policy.html.markdown Outdated Show resolved Hide resolved
website/docs/d/vgpu_profile.html.markdown Outdated Show resolved Hide resolved
website/docs/r/vm_vgpu_policy.html.markdown Outdated Show resolved Hide resolved
website/docs/r/vm_vgpu_policy.html.markdown Outdated Show resolved Hide resolved
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
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.

It's nice to finally complete the Compute policy circle with this addition 😄

Quick scan of trivial things/nitpicks, will do a more deep review after that:

website/docs/d/resource_pool.html.markdown Outdated Show resolved Hide resolved
vcd/datasource_vcd_vm_vgpu_policy.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_vm_vgpu_policy.go Outdated Show resolved Hide resolved
website/docs/d/vm_vgpu_policy.html.markdown Outdated Show resolved Hide resolved
vcd/resource_vcd_vm_vgpu_policy.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vm_vgpu_policy.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vm_vgpu_policy.go Outdated Show resolved Hide resolved
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Copy link
Collaborator

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

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

We should add 1167-experimental.md to define this new resource and data source

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
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 am good. There is one caveat that is not related to this PR and SDK needs fixing. Doing it in vmware/go-vcloud-director#636

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
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 for this great feature, @adezxc !

Signed-off-by: Adam Jasinski <jasinskia@vmware.com>
@adezxc adezxc merged commit 4ef031f into vmware:main Dec 4, 2023
3 checks passed
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.

None yet

5 participants