-
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
Overprovision should be default true. Terraform and the service back … #1322
Conversation
…end is considering this as default false when nothing is specified.
We have had discussion with VMSS team and they suggested that we should make this Default True. |
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 @VaijanathB
Thanks for this PR - I've taken a look through and left a comment inline, if we can fix this up it should be good to merge. In general we need to be a little careful with default changes; however in this particular case (since it's a top-level object outside a hash function) it should be fine, providing we message it appropriately in the changelog (which we'll handle post-merge).
Thanks!
@@ -245,7 +245,7 @@ The following arguments are supported: | |||
* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | |||
* `sku` - (Required) A sku block as documented below. | |||
* `upgrade_policy_mode` - (Required) Specifies the mode of an upgrade to virtual machines in the scale set. Possible values, `Manual` or `Automatic`. | |||
* `overprovision` - (Optional) Specifies whether the virtual machine scale set should be overprovisioned. | |||
* `overprovision` - (Optional) Specifies whether the virtual machine scale set should be overprovisioned. Default set to true when not 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.
Can we make this "Defaults to true
" to match the other docs?
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.
Done.
@@ -106,6 +106,7 @@ func resourceArmVirtualMachineScaleSet() *schema.Resource { | |||
"overprovision": { | |||
Type: schema.TypeBool, | |||
Optional: true, | |||
Default: true, |
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.
bear in mind this will currently force a change for existing resources - so this is going to need to go out in a major version & we're going to want to call this out in the release notes (cc @katbyte)
@tombuildsstuff Thanks for the review. I have updated the doc to change as requested. It should be fine if this goes in next major release. |
* `overprovision` - (Optional) Specifies whether the virtual machine scale set should be overprovisioned. | ||
* `single_placement_group` - (Optional) Specifies whether the scale set is limited to a single placement group with a maximum size of 100 virtual machines. If set to false, managed disks must be used. Default is true. Changing this forces a | ||
* `overprovision` - (Optional) Specifies whether the virtual machine scale set should be overprovisioned. Defaults to `true`. | ||
* `single_placement_group` - (Optional) Specifies whether the scale set is limited to a single placement group with a maximum size of 100 virtual machines. If set to false, managed disks must be used. Defaults to `true`. Changing this forces a |
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.
pushed a commit to quote both of these values
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 a message to the changelog about this 👍
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
…end is considering this as default false when nothing is specified. I have run all the VMSS tests. Most of them pass with some unrelated failures.