-
Notifications
You must be signed in to change notification settings - Fork 454
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: add vsan esa support #1874
Conversation
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.
Initial thought is that there should be a version check for 8.0 or later.
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.
@zxinyu08 and @SlimYang - could you open an enhancement issue to link to this pull request?
Also, since vSAN ESA is only for 8.0 and later there a version check should be considered. Something like:
if !d.Get("vsan_esa_enabled").(bool) {
if version.Older(viapi.VSphereVersion{Product: version.Product, Major: 8, Minor: 0}) {
return fmt.Errorf("vsan_esa_enabled is only supported on vSphere 8.0 and higher")
}
}
Marking as draft.
Hello, Thank you for this contribution. We will be focussing on some technical debt in the provider. One of those focusses will be coming up with a better way to manage version checking/flagging of features. With that in mind, this PR will likely need to wait until we come up with that design. |
Thank you @tenthirtyam @appilon for reviewing and it's good to know there will be an enhancement for version checking. We're considering if we could get this merged first with above version checking added as a temp workaround. When the new design is finished, we'll make change accordingly, if this is not a hard dependency. We'll also create an issue to keep this tracked. Please help review if there's any concern? Thanks. |
Marked as Ready for Review. |
Hi folks, I just patch a fix in latest commit. The issue is - However, the value of Resolution: |
Hi @zxinyu08 👋 - Could we ask that you open an Ryan Johnson |
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.
I have some comments around the nuance of how we want to handle the Boolean logic. However the "READ" side of the implemenation is missing. Please see the I apologize I missed the d.Set call.ReadFunc
and ensure vSphere API request is copied back into state (this is how Terraform ensures what exists on the backend matches when the user specified).
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.
LGTM! 🚀
I'll add in the CHANGELOG.md
update prior to approval from @iBrandyJackson.
f6adc75
to
a0d5465
Compare
Updated `CHANGELOG.md`. Signed-off-by: Ryan Johnson <[email protected]>
@iBrandyJackson - the |
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. |
This functionality has been released in v2.6.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Description
Feat: Add vSAN ESA support
This feature is to support configuring vSAN ESA cluster. We added a new field vsan_esa_enabled in compute cluster resource. Unit tests for vSAN ESA service is also added.
Testing Details:
We did end to end test from 3 standalone hosts based on the vSphere 8.0. Test cases are as follows:
For example, a cluster could be created with vSAN ESA enabled by applying .tf file which contains the following settings.
Acceptance tests
Output from acceptance testing:
Release Note
Release note for CHANGELOG:
References
#1899