Leave SKE cluster list length validations for the API (#425)
This commit is contained in:
parent
161d6666c1
commit
89b03f1a75
1 changed files with 0 additions and 18 deletions
|
|
@ -8,8 +8,6 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/int64validator"
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/resourcevalidator"
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
|
||||
"github.com/hashicorp/terraform-plugin-framework/attr"
|
||||
|
|
@ -330,10 +328,6 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
|
|||
"node_pools": schema.ListNestedAttribute{
|
||||
Description: "One or more `node_pool` block as defined below.",
|
||||
Required: true,
|
||||
Validators: []validator.List{
|
||||
listvalidator.SizeAtLeast(1),
|
||||
listvalidator.SizeAtMost(10),
|
||||
},
|
||||
NestedObject: schema.NestedAttributeObject{
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"name": schema.StringAttribute{
|
||||
|
|
@ -352,18 +346,10 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
|
|||
"minimum": schema.Int64Attribute{
|
||||
Description: "Minimum number of nodes in the pool.",
|
||||
Required: true,
|
||||
Validators: []validator.Int64{
|
||||
int64validator.AtLeast(1),
|
||||
int64validator.AtMost(100),
|
||||
},
|
||||
},
|
||||
"maximum": schema.Int64Attribute{
|
||||
Description: "Maximum number of nodes in the pool.",
|
||||
Required: true,
|
||||
Validators: []validator.Int64{
|
||||
int64validator.AtLeast(1),
|
||||
int64validator.AtMost(100),
|
||||
},
|
||||
},
|
||||
"max_surge": schema.Int64Attribute{
|
||||
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
|
|||
PlanModifiers: []planmodifier.Int64{
|
||||
int64planmodifier.UseStateForUnknown(),
|
||||
},
|
||||
Validators: []validator.Int64{
|
||||
int64validator.AtLeast(1),
|
||||
int64validator.AtMost(10),
|
||||
},
|
||||
},
|
||||
"max_unavailable": schema.Int64Attribute{
|
||||
Description: "Maximum number of VMs that that can be unavailable during an update.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue