Skip to content

Commit 533c357

Browse files
feat(apple_silicon): enabled kext (#5247)
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
1 parent 06a7549 commit 533c357

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ARGS:
1818
[runner-configuration.token]
1919
[runner-configuration.provider] (unknown_provider | github | gitlab)
2020
[applied-runner-configurations.runner-configuration-ids.{index}]
21+
[enable-kext] Enable kernel extensions
2122
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
2223

2324
FLAGS:

cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ USAGE:
88
ARGS:
99
server-id UUID of the server you want to reinstall
1010
[os-id] Reinstall the server with the OS corresponding to the os_id
11+
[enable-kext] Enable kernel extensions
1112
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1213

1314
FLAGS:

docs/commands/apple-silicon.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ scw apple-silicon server create [arg=value ...]
329329
| runner-configuration.token | | |
330330
| runner-configuration.provider | One of: `unknown_provider`, `github`, `gitlab` | |
331331
| applied-runner-configurations.runner-configuration-ids.{index} | | |
332+
| enable-kext | | Enable kernel extensions |
332333
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
333334

334335

@@ -432,6 +433,7 @@ scw apple-silicon server reinstall <server-id ...> [arg=value ...]
432433
|------|---|-------------|
433434
| server-id | Required | UUID of the server you want to reinstall |
434435
| os-id | | Reinstall the server with the OS corresponding to the os_id |
436+
| enable-kext | | Enable kernel extensions |
435437
| zone | Default: `fr-par-1`<br />One of: `fr-par-3` | Zone to target. If none is passed will use default zone from the config |
436438

437439

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,13 @@ func appleSiliconServerCreate() *core.Command {
253253
Deprecated: false,
254254
Positional: false,
255255
},
256+
{
257+
Name: "enable-kext",
258+
Short: `Enable kernel extensions`,
259+
Required: false,
260+
Deprecated: false,
261+
Positional: false,
262+
},
256263
core.ZoneArgSpec(scw.ZoneFrPar3),
257264
},
258265
Run: func(ctx context.Context, args any) (i any, e error) {
@@ -601,6 +608,13 @@ func appleSiliconServerReinstall() *core.Command {
601608
Deprecated: false,
602609
Positional: false,
603610
},
611+
{
612+
Name: "enable-kext",
613+
Short: `Enable kernel extensions`,
614+
Required: false,
615+
Deprecated: false,
616+
Positional: false,
617+
},
604618
core.ZoneArgSpec(scw.ZoneFrPar3),
605619
},
606620
Run: func(ctx context.Context, args any) (i any, e error) {

0 commit comments

Comments
 (0)