Skip to content

Commit

Permalink
azurerm_kubernetes_cluster - scale_down_mode can be updated (#19823)
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu authored Jan 4, 2023
1 parent 029e0bc commit 13e91c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/services/containers/kubernetes_nodepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ func SchemaDefaultNodePool() *pluginsdk.Schema {
"scale_down_mode": {
Type: pluginsdk.TypeString,
Optional: true,
ForceNew: true,
Default: string(managedclusters.ScaleDownModeDelete),
ValidateFunc: validation.StringInSlice([]string{
string(managedclusters.ScaleDownModeDeallocate),
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ A `default_node_pool` block supports the following:

* `proximity_placement_group_id` - (Optional) The ID of the Proximity Placement Group. Changing this forces a new resource to be created.

* `scale_down_mode` - (Optional) Specifies the autoscaling behaviour of the Kubernetes Cluster. Allowed values are `Delete` and `Deallocate`. Defaults to `Delete`. Changing this forces a new resource to be created.
* `scale_down_mode` - (Optional) Specifies the autoscaling behaviour of the Kubernetes Cluster. Allowed values are `Delete` and `Deallocate`. Defaults to `Delete`.

* `type` - (Optional) The type of Node Pool which should be created. Possible values are `AvailabilitySet` and `VirtualMachineScaleSets`. Defaults to `VirtualMachineScaleSets`. Changing this forces a new resource to be created.

Expand Down

0 comments on commit 13e91c9

Please sign in to comment.