-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update ha_datastore_apd_response_delay
defaults and docs
#1542
Conversation
- Updates `ha_datastore_apd_response_delay` to the API default for `vmTerminateDelayForAPDSec`. - Updates the `compute_cluster` resource documentation to seconds versus minutes for `ha_datastore_apd_response_delay`. - Updates the `compute_cluster` resource documentation to use the same structure for describing time-based arguments . Reference: - Issue: #1438 - API: https://developer.vmware.com/apis/361/doc/vim.cluster.VmComponentProtectionSettings.html#vmTerminateDelayForAPDSec Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
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.
Normally changing defaults typically could be interpreted as a breaking change if it significantly changes the behavior of the system, but considering we are adjusting a delay, and it appears the old value was erroneously calculated in minutes when the code uses it as seconds, this change is fine, just update the description on in the Go code.
Maybe one day we will generate the docs from the descriptions so they don't need to be double maintained... sigh
Actually... might have to do a state migration to make this non-breaking... ugh. I need a refresher on the nuance of state here, let me created an isolated example and get back to you. |
Co-authored-by: appilon <apilon@hashicorp.com>
Thanks for taking a look into this one, I've committed your changes in the review. I didn't think about the possible impact to state changes.😬 Ryan |
In practical terms this should be an easy change, but the fact that all attributes are committed to state it could cause a bad user experience/diff for the users, might be able to migrate their state from 3 to 180 if their config was left empty (implying they were relying on the default). The problem is the old SDK (which this provider uses) doesn't do a good job of providing config vs state... |
I suppose the changes in GH-1460 for the TF SDK don't help with that concern? |
Unfortunately no the new SDK I refer to is this one https://github.com/hashicorp/terraform-plugin-framework. And it won't be feasible to migrate to it for this provider, not to get sidetracked. Lemme see what I can repro in an isolated example. |
Okay so I ran a few scenarios in an isolated environment.
If the user applies, then there are no subsequent messages/problems. Given that, I think it's safe to merge this PR without any state migrations, we will make note in the changelog that a onetime drift message is possible. I did notice there is another piece of schema that I guess mirrors this one but for overrides? @tenthirtyam Can you perform the doc updates here and here as well? |
@appilon I'll make these needed changes and update the PR very soon. Thanks! Ryan |
- Updates the documentation for the `ha_datastore_apd_response_delay` time interval from minutes to seconds. - Update resource documentation reference `ref-vsphere-ha-clusters` to vSphere 7.0. Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
Committed the changes for the |
Thanks for the support @appilon! |
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
ha_datastore_apd_response_delay
to the API default forvmTerminateDelayForAPDSec
.compute_cluster
resource documentation to seconds versus minutes forha_datastore_apd_response_delay
.compute_cluster
resource documentation to use the same structure for describing time-based arguments .Release Note
Release note for CHANGELOG:
References