Skip to content

Commit 7bd1ac4

Browse files
authored
make filesystem size mutable (#78)
1 parent 3445275 commit 7bd1ac4

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

docs/resources/filesystem.md

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ resource "genesiscloud_filesystem" "example" {
3232
- If the value of this attribute changes, Terraform will destroy and recreate the resource.
3333
- The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
3434
- `size` (Number) The storage size of this filesystem given in GiB.
35-
- If the value of this attribute changes, Terraform will destroy and recreate the resource.
3635
- The value must be at least 1.
3736
- `type` (String) The storage type of the filesystem.
3837
- If the value of this attribute changes, Terraform will destroy and recreate the resource.

internal/provider/filesystem_resource.go

-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/hashicorp/terraform-plugin-framework/path"
1414
"github.com/hashicorp/terraform-plugin-framework/resource"
1515
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
16-
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
1716
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
1817
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
1918
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
@@ -88,9 +87,6 @@ func (r *FilesystemResource) Schema(ctx context.Context, req resource.SchemaRequ
8887
"size": resourceenhancer.Attribute(ctx, schema.Int64Attribute{
8988
MarkdownDescription: "The storage size of this filesystem given in GiB.",
9089
Required: true,
91-
PlanModifiers: []planmodifier.Int64{
92-
int64planmodifier.RequiresReplace(),
93-
},
9490
Validators: []validator.Int64{
9591
int64validator.AtLeast(1),
9692
},

0 commit comments

Comments
 (0)