-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_site_recovery_protection_container_mapping
- support automatic_update_extension.automatic_update_extensions_enabled
and automatic_update_extension.automation_account_id
properties
#19710
Conversation
…e extension settings
azurerm_site_recovery_protection_container_mapping
- add auto update extension settingsazurerm_site_recovery_protection_container_mapping
- support automatic_update_extensions_enabled
and automation_account_id
properties
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.
Hey @ziyeqf, thanks for this PR. It's mostly good but I think that we could lump these two attributes into a TypeList instead.
internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go
Outdated
Show resolved
Hide resolved
Test after modification
|
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.
One comment left inline
internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go
Outdated
Show resolved
Hide resolved
azurerm_site_recovery_protection_container_mapping
- support automatic_update_extensions_enabled
and automation_account_id
propertiesazurerm_site_recovery_protection_container_mapping
- support automatic_update_extension.automatic_update_extensions_enabled
and automatic_update_extension.automation_account_id
properties
4f8491a
to
d06c647
Compare
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.
Hey @ziyeqf, thanks for making those changes. I was looking more into this and it looks like we are changing the ProviderSpecificInput
type from the basic type ReplicationProviderSpecificContainerMappingInput
to A2A
. I also see that there is another type called VMwareCbt
.
I don't like that we're favoring one type over the other in this resource and we are making that decision for the user based off their input whilst also not letting them use the other type if they want.
Do you know if this resource does anything? It doesn't appear so since most of the functionality comes from what you're adding here. If this resource isn't doing anything, it's probably worth creating a new resource and deprecating this one. That new resource will be azurerm_site_recovery_protection_container_mapping_a2a
. That will also give us the flexibility to add the other type azurerm_site_recovery_protection_container_mapping_vmware_cbt
if there are asks for it.
Hi @mbfrahry , For the current resources For Site Recovery, there are basically four type How do you like that? I have also thought about renaming the current a2a resources to |
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.
That is fair. So with that being the case, we can nearly revert it back to the way you had it with those attributes being at the top level. But we should also force the type to be InstanceTypeBasicReplicationProviderSpecificContainerMappingInputInstanceTypeA2A
as in the original PR submitted, the type was being changed back to ReplicationProviderSpecificContainerMappingInput
if these new attributes weren't set.
Apologies for the run around on this!
temporarily close this PR to reduce noise in refactoring. |
@ziyeqf - is there any progress on getting this merged so we don't need the hack? Azure/azure-rest-api-specs#21652 |
oh, it's a mistake, Tom has explained it's not a Pandora issue. While the codes on |
new test result
|
internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go
Outdated
Show resolved
Hide resolved
test result after rename
|
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.
Thanks @ziyeqf - LGTM 🛠️
This functionality has been released in v3.42.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 contributions. |
closes #19691
closes #19407
Test