Skip to content

feat: add support for vSphere Zones#2625

Merged
tenthirtyam merged 3 commits intomainfrom
feat/zones
Nov 18, 2025
Merged

feat: add support for vSphere Zones#2625
tenthirtyam merged 3 commits intomainfrom
feat/zones

Conversation

@spacegospod
Copy link
Copy Markdown
Contributor

Summary

Adding support for vSphere Zones.

The data source and resource being added in this PR cover the following APIs
https://developer.broadcom.com/xapis/vsphere-automation-api/latest/vcenter/vcenter-consumption-domains-zones/
https://developer.broadcom.com/xapis/vsphere-automation-api/latest/vcenter/vcenter-consumption-domains-zones-cluster-associations/

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

📦 github.com/vmware/terraform-provider-vsphere/vsphere
✅ TestAccDataSourceVSphereZone_associations (44.77s)
✅ TestAccDataSourceVSphereZone_basic (6.7s)
✅ TestAccResourceVSphereZone_createAssociations (16.67s)
✅ TestAccResourceVSphereZone_createBasic (3.69s)
✅ TestAccResourceVSphereZone_updateAddAssociation (19.47s)
✅ TestAccResourceVSphereZone_updateAssociations (21.01s)
✅ TestAccResourceVSphereZone_updateBasic (10.98s)
✅ TestAccResourceVSphereZone_updateRemoveAssociation (20.34s)

and the same without gotestfmt but including timestamps

{"Time":"2025-11-18T06:13:21.440422186-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccDataSourceVSphereZone_basic","Output":"--- PASS: TestAccDataSourceVSphereZone_basic (6.70s)\n"}
{"Time":"2025-11-18T06:14:06.211278906-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccDataSourceVSphereZone_associations","Output":"--- PASS: TestAccDataSourceVSphereZone_associations (44.77s)\n"}
{"Time":"2025-11-18T06:14:09.901606119-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccResourceVSphereZone_createBasic","Output":"--- PASS: TestAccResourceVSphereZone_createBasic (3.69s)\n"}
{"Time":"2025-11-18T06:14:26.574838622-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccResourceVSphereZone_createAssociations","Output":"--- PASS: TestAccResourceVSphereZone_createAssociations (16.67s)\n"}
{"Time":"2025-11-18T06:14:37.551265714-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccResourceVSphereZone_updateBasic","Output":"--- PASS: TestAccResourceVSphereZone_updateBasic (10.98s)\n"}
{"Time":"2025-11-18T06:14:57.020080838-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccResourceVSphereZone_updateAddAssociation","Output":"--- PASS: TestAccResourceVSphereZone_updateAddAssociation (19.47s)\n"}
{"Time":"2025-11-18T06:15:17.36410988-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccResourceVSphereZone_updateRemoveAssociation","Output":"--- PASS: TestAccResourceVSphereZone_updateRemoveAssociation (20.34s)\n"}
{"Time":"2025-11-18T06:15:38.379048642-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Test":"TestAccResourceVSphereZone_updateAssociations","Output":"--- PASS: TestAccResourceVSphereZone_updateAssociations (21.01s)\n"}
{"Time":"2025-11-18T06:15:38.379067786-08:00","Action":"output","Package":"github.com/vmware/terraform-provider-vsphere/vsphere","Output":"PASS\n"}

Documentation

  • Documentation has been added or updated.

Issue References

Resolves #2185

Release Note

- `d/zone` - Added a data source for vSphere Zones
- `r/zone` - Added a resource for vSphere Zones

Additional Information

vSphere Zones are intended to be used for Supervisor enablement. As of now r/supervisor is not capable of working with vSphere Zones. We aim to remediate this problem and allow enablement on zones in v2.16.0.

vSphere Zones are available on vCenter 8 and onwards.

Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
Signed-off-by: Stoyan Zhelyazkov <stoyan.zhelyazkov@broadcom.com>
@spacegospod spacegospod self-assigned this Nov 18, 2025
@spacegospod spacegospod requested a review from a team as a code owner November 18, 2025 14:30
@github-actions github-actions bot added documentation Documentation provider Provider needs-review Needs Review size/xl Relative Sizing: Extra-Large labels Nov 18, 2025
@tenthirtyam tenthirtyam self-requested a review November 18, 2025 15:41
Copy link
Copy Markdown
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@tenthirtyam tenthirtyam merged commit 5a57ba0 into main Nov 18, 2025
9 checks passed
@tenthirtyam tenthirtyam deleted the feat/zones branch November 18, 2025 18:04
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Nov 18, 2025
@tenthirtyam tenthirtyam added this to the v2.16.0 milestone Nov 18, 2025
@github-actions
Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Documentation provider Provider size/xl Relative Sizing: Extra-Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for vSphere Zones

2 participants