Skip to content

Commit

Permalink
make filesystem size mutable (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkrueck authored Apr 23, 2024
1 parent 3445275 commit 7bd1ac4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/resources/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ resource "genesiscloud_filesystem" "example" {
- If the value of this attribute changes, Terraform will destroy and recreate the resource.
- The value must be one of: ["ARC-IS-HAF-1" "EUC-DE-MUC-1" "NORD-NO-KRS-1"].
- `size` (Number) The storage size of this filesystem given in GiB.
- If the value of this attribute changes, Terraform will destroy and recreate the resource.
- The value must be at least 1.
- `type` (String) The storage type of the filesystem.
- If the value of this attribute changes, Terraform will destroy and recreate the resource.
Expand Down
4 changes: 0 additions & 4 deletions internal/provider/filesystem_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
Expand Down Expand Up @@ -88,9 +87,6 @@ func (r *FilesystemResource) Schema(ctx context.Context, req resource.SchemaRequ
"size": resourceenhancer.Attribute(ctx, schema.Int64Attribute{
MarkdownDescription: "The storage size of this filesystem given in GiB.",
Required: true,
PlanModifiers: []planmodifier.Int64{
int64planmodifier.RequiresReplace(),
},
Validators: []validator.Int64{
int64validator.AtLeast(1),
},
Expand Down

0 comments on commit 7bd1ac4

Please sign in to comment.