feat: update default x86 server type to cx22 (#38)

`cx11` is deprecated and will be removed in September.

Changelog:
https://docs.hetzner.cloud/changelog#2024-06-06-old-server-types-with-shared-intel-vcpus-are-deprecated
This commit is contained in:
Julian Tölle 2024-06-23 16:25:58 +02:00 committed by GitHub
parent d921510af3
commit ebe08b345c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,11 +34,11 @@ var (
} }
serverTypePerArchitecture = map[hcloud.Architecture]*hcloud.ServerType{ serverTypePerArchitecture = map[hcloud.Architecture]*hcloud.ServerType{
hcloud.ArchitectureX86: {Name: "cx11"}, hcloud.ArchitectureX86: {Name: "cx22"},
hcloud.ArchitectureARM: {Name: "cax11"}, hcloud.ArchitectureARM: {Name: "cax11"},
} }
defaultImage = &hcloud.Image{Name: "ubuntu-22.04"} defaultImage = &hcloud.Image{Name: "ubuntu-24.04"}
defaultLocation = &hcloud.Location{Name: "fsn1"} defaultLocation = &hcloud.Location{Name: "fsn1"}
defaultRescueType = hcloud.ServerRescueTypeLinux64 defaultRescueType = hcloud.ServerRescueTypeLinux64