Skip to content

Commit

Permalink
VPU Support (#645)
Browse files Browse the repository at this point in the history
## 📝 Description

**What does this PR do and why is this change necessary?**

Adds `AcceleratedDevices` to `Instnace.Stats` and `GET linode/types`
Also adds `NETINT Quadra T1U` Capability enum.

## ✔️ How to Test

**How do I run the relevant unit/integration tests?**

```
make fixtures ARGS="-run TestInstance_withVPU"
```
  • Loading branch information
jriddle-linode authored Jan 10, 2025
1 parent 2520ae9 commit 1cfb144
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 18 deletions.
11 changes: 6 additions & 5 deletions instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ type Instance struct {

// InstanceSpec represents a linode spec
type InstanceSpec struct {
Disk int `json:"disk"`
Memory int `json:"memory"`
VCPUs int `json:"vcpus"`
Transfer int `json:"transfer"`
GPUs int `json:"gpus"`
Disk int `json:"disk"`
Memory int `json:"memory"`
VCPUs int `json:"vcpus"`
Transfer int `json:"transfer"`
GPUs int `json:"gpus"`
AcceleratedDevices int `json:"accelerated_devices"`
}

// InstanceAlert represents a metric alert
Expand Down
1 change: 1 addition & 0 deletions regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
CapabilityVlans string = "Vlans"
CapabilityVPCs string = "VPCs"
CapabilityVPCsExtra string = "VPCs Extra"
CapabilityQuadraT1UVPU string = "NETINT Quadra T1U"
CapabilityMachineImages string = "Machine Images"
CapabilityBareMetal string = "Bare Metal"
CapabilityDBAAS string = "Managed Databases"
Expand Down
Loading

0 comments on commit 1cfb144

Please sign in to comment.