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

VMSS - add feature for scale_in_on_delete #13635

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

hbuckle
Copy link
Contributor

@hbuckle hbuckle commented Oct 6, 2021

Not done anything to do with features before, hopefully this is ok.

Fixes #13569

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @hbuckle

Thanks for this PR - taking a look through this mostly LGTM, however I think we want to rename this to scale_to_zero_before_deletion so it's clearer exactly what this does - WDYT?

Thanks!

@@ -33,6 +33,7 @@ func Default() UserFeatures {
VirtualMachineScaleSet: VirtualMachineScaleSetFeatures{
ForceDelete: false,
RollInstancesWhenRequired: true,
ScaleInOnDelete: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it'd be worth calling this ScaleToZeroOnDelete rather than ScaleIn so it's a little more explicit?

"virtual_machine_scale_set": []interface{}{
map[string]interface{}{
"force_delete": false,
"scale_in_on_delete": false,
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't this also require RollInstancesWhenRequired set?

@@ -136,6 +136,10 @@ func schemaFeatures(supportLegacyTestSuite bool) *pluginsdk.Schema {
Type: pluginsdk.TypeBool,
Required: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

outside of the scope of this PR, but I'm surprised that this is required - this should be Optional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Something else I noticed is that force_delete doesn't appear to actually be implemented

@github-actions github-actions bot added size/M and removed size/S labels Oct 9, 2021
@stephybun stephybun added service/vmss Virtual Machine Scale Sets enhancement labels Oct 26, 2021
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks @hbuckle, LGTM!

@stephybun stephybun merged commit 171b010 into hashicorp:main Oct 26, 2021
stephybun added a commit that referenced this pull request Oct 26, 2021
@stephybun stephybun added this to the v2.83.0 milestone Oct 26, 2021
@github-actions
Copy link

This functionality has been released in v2.83.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!

@github-actions
Copy link

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.
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 Nov 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azurerm_windows_virtual_machine_scale_set - scale to 0 on delete incompatible with service fabric
3 participants