Skip to content

Commit 89b03f1

Browse files
authored
Leave SKE cluster list length validations for the API (#425)
1 parent 161d666 commit 89b03f1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

stackit/internal/services/ske/cluster/resource.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
"strings"
99
"time"
1010

11-
"github.com/hashicorp/terraform-plugin-framework-validators/int64validator"
12-
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
1311
"github.com/hashicorp/terraform-plugin-framework-validators/resourcevalidator"
1412
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
1513
"github.com/hashicorp/terraform-plugin-framework/attr"
@@ -330,10 +328,6 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
330328
"node_pools": schema.ListNestedAttribute{
331329
Description: "One or more `node_pool` block as defined below.",
332330
Required: true,
333-
Validators: []validator.List{
334-
listvalidator.SizeAtLeast(1),
335-
listvalidator.SizeAtMost(10),
336-
},
337331
NestedObject: schema.NestedAttributeObject{
338332
Attributes: map[string]schema.Attribute{
339333
"name": schema.StringAttribute{
@@ -352,18 +346,10 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
352346
"minimum": schema.Int64Attribute{
353347
Description: "Minimum number of nodes in the pool.",
354348
Required: true,
355-
Validators: []validator.Int64{
356-
int64validator.AtLeast(1),
357-
int64validator.AtMost(100),
358-
},
359349
},
360350
"maximum": schema.Int64Attribute{
361351
Description: "Maximum number of nodes in the pool.",
362352
Required: true,
363-
Validators: []validator.Int64{
364-
int64validator.AtLeast(1),
365-
int64validator.AtMost(100),
366-
},
367353
},
368354
"max_surge": schema.Int64Attribute{
369355
Description: "Maximum number of additional VMs that are created during an update.",
@@ -372,10 +358,6 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
372358
PlanModifiers: []planmodifier.Int64{
373359
int64planmodifier.UseStateForUnknown(),
374360
},
375-
Validators: []validator.Int64{
376-
int64validator.AtLeast(1),
377-
int64validator.AtMost(10),
378-
},
379361
},
380362
"max_unavailable": schema.Int64Attribute{
381363
Description: "Maximum number of VMs that that can be unavailable during an update.",

0 commit comments

Comments
 (0)