From c3d118501c4a457247b6182e29a57d435024271c Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Thu, 3 Aug 2023 09:52:43 +0700 Subject: [PATCH] increase resource name limit --- instellar/cluster/resource.go | 2 +- instellar/component/resource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instellar/cluster/resource.go b/instellar/cluster/resource.go index 332c623..284dc92 100644 --- a/instellar/cluster/resource.go +++ b/instellar/cluster/resource.go @@ -66,7 +66,7 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re Description: "Name assigned by the user", Required: true, Validators: []validator.String{ - stringvalidator.LengthBetween(3, 32), + stringvalidator.LengthBetween(3, 48), stringvalidator.RegexMatches( regexp.MustCompile(`^[a-z0-9\-]+$`), "must contain only lowercase alphanumeric characters", diff --git a/instellar/component/resource.go b/instellar/component/resource.go index 0134d33..f8a9de2 100644 --- a/instellar/component/resource.go +++ b/instellar/component/resource.go @@ -78,7 +78,7 @@ func (r *componentResource) Schema(_ context.Context, _ resource.SchemaRequest, Description: "Name of the component assigned by the user", Required: true, Validators: []validator.String{ - stringvalidator.LengthBetween(3, 32), + stringvalidator.LengthBetween(3, 64), stringvalidator.RegexMatches( regexp.MustCompile(`^[a-z0-9\-]+$`), "must contain only lowercase alphanumeric characters",