Skip to content

Commit 8d30287

Browse files
Require replacement on change of encryption attribute of a volume (#2124)
* Require replacement on change for encryption of a volume * Remove beta note for the attribute * golangci-lint fmt
1 parent 86640f0 commit 8d30287

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

docs/data-sources/volume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ The Linode Volume resource exports the following attributes:
4949

5050
- `filesystem_path` - The full filesystem path for the Volume based on the Volume's label. Path is /dev/disk/by-id/scsi-0LinodeVolume + Volume label.
5151

52-
- `encryption` - Whether Block Storage Disk Encryption is enabled or disabled on this Volume. Note: Block Storage Disk Encryption is not currently available to all users.
52+
- `encryption` - Whether Block Storage Disk Encryption is enabled or disabled on this Volume.

docs/resources/volume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The following arguments are supported:
8181

8282
* `tags` - (Optional) A list of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
8383

84-
* `encryption` - (Optional) Whether Block Storage Disk Encryption is enabled or disabled on this Volume. Note: Block Storage Disk Encryption is not currently available to all users.
84+
* `encryption` - (Optional) Whether Block Storage Disk Encryption is enabled or disabled on this Volume.
8585

8686
### Timeouts
8787

linode/volume/framework_schema_datasource.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ var VolumeAttributes = map[string]schema.Attribute{
4949
Computed: true,
5050
},
5151
"encryption": schema.StringAttribute{
52-
Description: "Whether Block Storage Disk Encryption is enabled or disabled on this Volume. " +
53-
"Note: Block Storage Disk Encryption is not currently available to all users.",
54-
Computed: true,
52+
Description: "Whether Block Storage Disk Encryption is enabled or disabled on this Volume.",
53+
Computed: true,
5554
},
5655
}
5756

linode/volume/framework_schema_resource.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,16 @@ var frameworkResourceSchema = schema.Schema{
113113
Default: helper.EmptySetDefault(types.StringType),
114114
},
115115
"encryption": schema.StringAttribute{
116-
Description: "Whether Block Storage Disk Encryption is enabled or disabled on this Volume. " +
117-
"Note: Block Storage Disk Encryption is not currently available to all users.",
118-
Optional: true,
119-
Computed: true,
120-
Default: stringdefault.StaticString("disabled"),
116+
Description: "Whether Block Storage Disk Encryption is enabled or disabled on this Volume. ",
117+
Optional: true,
118+
Computed: true,
119+
Default: stringdefault.StaticString("disabled"),
121120
Validators: []validator.String{
122121
stringvalidator.OneOf("enabled", "disabled"),
123122
},
123+
PlanModifiers: []planmodifier.String{
124+
stringplanmodifier.RequiresReplace(),
125+
},
124126
},
125127
},
126128
}

0 commit comments

Comments
 (0)