Skip to content

Commit 6134283

Browse files
authored
Merge pull request #1232 from klippo/allow-empty-machine-pools
Allow machine pools to be created and scaled down to 0
2 parents 84f779a + ae1757b commit 6134283

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

rancher2/schema_cluster_v2_rke_config_machine_pool.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ func clusterV2RKEConfigMachinePoolFields() map[string]*schema.Schema {
9393
Description: "Machine pool paused",
9494
},
9595
"quantity": {
96-
Type: schema.TypeInt,
97-
Optional: true,
98-
Default: 1,
99-
ValidateFunc: validation.IntAtLeast(1),
100-
Description: "Machine pool quantity",
96+
Type: schema.TypeInt,
97+
Optional: true,
98+
Default: 1,
99+
Description: "Machine pool quantity",
101100
},
102101
"rolling_update": {
103102
Type: schema.TypeList,

0 commit comments

Comments
 (0)