Skip to content

Ensure parity for region capability consts#886

Open
dawiddzhafarov wants to merge 1 commit intolinode:mainfrom
dawiddzhafarov:TPT-4009-linodego-ensure-parity-for-region-capability-consts
Open

Ensure parity for region capability consts#886
dawiddzhafarov wants to merge 1 commit intolinode:mainfrom
dawiddzhafarov:TPT-4009-linodego-ensure-parity-for-region-capability-consts

Conversation

@dawiddzhafarov
Copy link

📝 Description

This PR adds consts that are listed here but were not present in regions.go.

CapabilityBareMetal has been removed as it's no longer listed in the above file.

✔️ How to Test

make test-unit

@dawiddzhafarov dawiddzhafarov marked this pull request as ready for review February 5, 2026 10:27
@dawiddzhafarov dawiddzhafarov requested a review from a team as a code owner February 5, 2026 10:27
@dawiddzhafarov dawiddzhafarov requested review from a team, Copilot, ezilber-akamai, jriddle-linode, lgarber-akamai and zliang-akamai and removed request for a team February 5, 2026 10:27
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

This PR synchronizes region capability constants with the upstream linodego library by adding missing capabilities and removing deprecated ones to maintain parity.

Changes:

  • Added 20 new region capability constants that were present in linodego but missing from this file
  • Removed deprecated CapabilityBareMetal constant
  • Reordered constants alphabetically for better maintainability

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

CapabilityMachineImages string = "Machine Images"
CapabilityMaintenancePolicy string = "Maintenance Policy"
CapabilityMetadata string = "Metadata"
CapabilityNLB string = "Network LoadBalancer"
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

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

Corrected spelling of 'LoadBalancer' to 'Load Balancer' (two words) to match standard terminology and other capability names.

Suggested change
CapabilityNLB string = "Network LoadBalancer"
CapabilityNLB string = "Network Load Balancer"

Copilot uses AI. Check for mistakes.
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.

1 participant