diff --git a/internal/resource/cluster_model.go b/internal/resource/cluster_model.go index b6d4505..dc54e22 100644 --- a/internal/resource/cluster_model.go +++ b/internal/resource/cluster_model.go @@ -92,6 +92,7 @@ func (c *cluster) Attributes(ctx context.Context, d diag.Diagnostics) console.Cl func (c *cluster) UpdateAttributes(ctx context.Context, d diag.Diagnostics) console.ClusterUpdateAttributes { return console.ClusterUpdateAttributes{ + Name: c.Name.ValueStringPointer(), // Version: c.Version.ValueStringPointer(), Handle: c.Handle.ValueStringPointer(), Protect: c.Protect.ValueBoolPointer(), diff --git a/internal/resource/cluster_schema.go b/internal/resource/cluster_schema.go index 1aeaf59..368fb28 100644 --- a/internal/resource/cluster_schema.go +++ b/internal/resource/cluster_schema.go @@ -37,7 +37,7 @@ func (r *clusterResource) schema() schema.Schema { Description: "Human-readable name of this cluster, that also translates to cloud resource name.", MarkdownDescription: "Human-readable name of this cluster, that also translates to cloud resource name.", Required: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()}, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, }, "handle": schema.StringAttribute{ Description: "A short, unique human-readable name used to identify this cluster. Does not necessarily map to the cloud resource name.",