Skip to content

Commit

Permalink
Merge pull request #1232 from klippo/allow-empty-machine-pools
Browse files Browse the repository at this point in the history
Allow machine pools to be created and scaled down to 0
  • Loading branch information
a-blender authored Oct 27, 2023
2 parents 84f779a + ae1757b commit 6134283
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rancher2/schema_cluster_v2_rke_config_machine_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ func clusterV2RKEConfigMachinePoolFields() map[string]*schema.Schema {
Description: "Machine pool paused",
},
"quantity": {
Type: schema.TypeInt,
Optional: true,
Default: 1,
ValidateFunc: validation.IntAtLeast(1),
Description: "Machine pool quantity",
Type: schema.TypeInt,
Optional: true,
Default: 1,
Description: "Machine pool quantity",
},
"rolling_update": {
Type: schema.TypeList,
Expand Down

0 comments on commit 6134283

Please sign in to comment.