Skip to content

Commit 6127516

Browse files
committed
Deprecate xen from SDKs and Tools
1 parent 0b7b116 commit 6127516

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

docs/data-sources/kernel.md

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

4242
* `version` - Linux Kernel version
4343

44-
* `xen` - If this Kernel is suitable for Xen Linodes.
44+
* `xen` - (Deprecated) If this Kernel is suitable for Xen Linodes.

docs/data-sources/kernels.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Each Linode Kernel will be stored in the `kernel` attribute and will export the
6363

6464
* `version` - Linux Kernel version
6565

66-
* `xen` - If this Kernel is suitable for Xen Linodes.
66+
* `xen` - (Deprecated) If this Kernel is suitable for Xen Linodes.
6767

6868
## Filterable Fields
6969

@@ -81,4 +81,4 @@ Each Linode Kernel will be stored in the `kernel` attribute and will export the
8181

8282
* `version`
8383

84-
* `xen`
84+
* `xen` (Deprecated)

linode/kernel/framework_datasource_schema.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ var KernelAttributes = map[string]schema.Attribute{
4040
Computed: true,
4141
},
4242
"xen": schema.BoolAttribute{
43-
Description: "If this Kernel is suitable for Xen Linodes.",
44-
Computed: true,
43+
Description: "If this Kernel is suitable for Xen Linodes.",
44+
DeprecationMessage: "This field is no longer populated by the API, but it is included here for backward compatibility with existing implementations.",
45+
Computed: true,
4546
},
4647
}
4748

linode/kernel/framework_models.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ type DataSourceModel struct {
1717
Label types.String `tfsdk:"label"`
1818
PVOPS types.Bool `tfsdk:"pvops"`
1919
Version types.String `tfsdk:"version"`
20-
XEN types.Bool `tfsdk:"xen"`
20+
// deprecated: this field is no longer populated by the API, but it is included here for backward compatibility with existing implementations.
21+
XEN types.Bool `tfsdk:"xen"`
2122
}
2223

23-
func (data *DataSourceModel) ParseKernel(ctx context.Context, kernel *linodego.LinodeKernel) {
24+
func (data *DataSourceModel) ParseKernel(_ context.Context, kernel *linodego.LinodeKernel) {
2425
data.ID = types.StringValue(kernel.ID)
2526
data.Architecture = types.StringValue(kernel.Architecture)
2627
data.Built = timetypes.NewRFC3339TimePointerValue(kernel.Built)

0 commit comments

Comments
 (0)