Skip to content

Commit ec9120a

Browse files
author
Vitaliy Zakaznikov
committed
Moving default server type and default cloud deploy type to cx23
as cx22 and cpx11 are now deprecated by Hetzner.
1 parent 50090d9 commit ec9120a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

examples/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ config:
2222
# - ...
2323
delete_random: false
2424
default_image: "x86:system:ubuntu-22.04"
25-
default_server_type: cpx11
25+
default_server_type: cx23
2626
#default_location: ash
2727
workers: 10
2828
#scripts:
@@ -37,7 +37,7 @@ config:
3737
cloud:
3838
server_name: "github-hetzner-runners"
3939
deploy:
40-
server_type: cpx11
40+
server_type: cx23
4141
image: "x86:system:ubuntu-22.04"
4242
#location:
4343
#setup_script:

testflows/github/hetzner/runners/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def location_type(v):
128128

129129

130130
def server_type(v):
131-
"""Server type argument. Example: cx22"""
131+
"""Server type argument. Example: cx23"""
132132
return ServerType(name=v)
133133

134134

testflows/github/hetzner/runners/bin/github-hetzner-runners

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def argparser():
255255
dest="default_server_type",
256256
metavar="name",
257257
type=args.server_type,
258-
help=("default runner server type name, default: cx22"),
258+
help=("default runner server type name, default: cx23"),
259259
)
260260

261261
parser.add_argument(
@@ -627,7 +627,7 @@ def argparser():
627627
metavar="name",
628628
dest="cloud_deploy_server_type",
629629
type=args.server_type,
630-
help="deployment server type, default: cpx11",
630+
help="deployment server type, default: cx23",
631631
)
632632

633633
deploy_cloud_parser.add_argument(
@@ -1309,8 +1309,8 @@ def argparser():
13091309
metavar="name",
13101310
dest="create_snapshot_server_type",
13111311
type=args.server_type,
1312-
help="server type, default: cpx11",
1313-
default=args.server_type("cpx11"),
1312+
help="server type, default: cx23",
1313+
default=args.server_type("cx23"),
13141314
)
13151315

13161316
create_snapshot_parser.add_argument(

testflows/github/hetzner/runners/config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class standby_runner:
9696

9797
@dataclass
9898
class deploy_:
99-
server_type: ServerType = server_type("cpx11")
99+
server_type: ServerType = server_type("cx23")
100100
image: Image = image("x86:system:ubuntu-22.04")
101101
location: Location = None
102102
setup_script: str = os.path.join(current_dir, "..", "scripts", "deploy", "setup.sh")
@@ -128,7 +128,7 @@ class Config:
128128
max_runners_for_label: list[tuple[set[str], int]] = None
129129
max_runners_in_workflow_run: int = None
130130
default_image: Image = image("x86:system:ubuntu-22.04")
131-
default_server_type: ServerType = server_type("cx22")
131+
default_server_type: ServerType = server_type("cx23")
132132
default_location: Location = None
133133
default_volume_location: Location = location("nbg1")
134134
default_volume_size: int = 10

testflows/github/hetzner/runners/config/schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@
124124
"examples": ["x86:system:ubuntu-22.04"]
125125
},
126126
"default_server_type": {
127-
"description": "The default runner server type name, default: cx22.",
127+
"description": "The default runner server type name, default: cx23.",
128128
"type": "string",
129-
"examples": ["cx22"]
129+
"examples": ["cx23"]
130130
},
131131
"default_location": {
132132
"description": "The default runner server location name, by default not specified.",
@@ -277,9 +277,9 @@
277277
"type": "object",
278278
"properties": {
279279
"server_type": {
280-
"description": "The server type of the cloud service server, default: cpx11.",
280+
"description": "The server type of the cloud service server, default: cx23.",
281281
"type": "string",
282-
"examples": ["cpx11"]
282+
"examples": ["cx23"]
283283
},
284284
"image": {
285285
"description": "The architecture:type:name_or_description\nthat specifies the image that will be used for the cloud service server, where the architecture is either: 'x86' or 'arm' and the type is either: 'system','snapshot','backup','app', default: x86:system:ubuntu-22.04.",

0 commit comments

Comments
 (0)