Skip to content

Deprecate xen from SDKs and Tools#896

Open
mgwoj wants to merge 2 commits intolinode:mainfrom
mgwoj:feature/TPT-2851-deprecate-xen-from-sdks-and-tools
Open

Deprecate xen from SDKs and Tools#896
mgwoj wants to merge 2 commits intolinode:mainfrom
mgwoj:feature/TPT-2851-deprecate-xen-from-sdks-and-tools

Conversation

@mgwoj
Copy link
Contributor

@mgwoj mgwoj commented Feb 16, 2026

📝 Description

The xen field has been removed from the kernel API response. We can deprecate this field from SDKs and tools. https://www.linode.com/docs/api/linode-instances/#kernel-view

✔️ How to Test

No changes to the tests.

Copilot AI review requested due to automatic review settings February 16, 2026 11:59
@mgwoj mgwoj requested a review from a team as a code owner February 16, 2026 11:59
@mgwoj mgwoj requested review from jriddle-linode and yec-akamai and removed request for a team February 16, 2026 11:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Deprecates the xen kernel capability field in the Go SDK model to reflect the upstream API response no longer including it, while keeping the field for backward compatibility.

Changes:

  • Adds a Go deprecation comment to the LinodeKernel.XEN field.
  • Minor struct field formatting adjustments around LinodeKernel fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

KVM bool `json:"kvm"`
// Deprecated: this field is no longer populated by the API, but it is included here for backward compatibility with existing implementations.
XEN bool `json:"xen"`
PVOPS bool `json:"pvops"`
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This struct field formatting (extra spaces between name/type/tag) likely won’t pass the repo’s enforced gofumpt formatting (CI runs gofumpt -l -w . and fails on diffs). Re-run gofumpt/gofmt so the field alignment matches the rest of the struct.

Suggested change
PVOPS bool `json:"pvops"`
PVOPS bool `json:"pvops"`

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@yec-akamai yec-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments